misc: bphy: Ensure proper cleanup sequence
commit 283152abc8648035d7315cbcdcfc45a01a6f1d89 from git@git.assembla.com:cavium/WindRiver.linux.git There appears to be a race condition between irq cleanup handlers and release procedure. Freeing resourcs at release() is still too early since cleanup functions may take place until driver exit(). This is also a place where resource freeing now takes place. In order to keep allocation/deallocation symmetry related resources from now are acquired in init(). Change-Id: Ib5e99d8ba4e0c935db398f82461d5220c659c76d Signed-off-by:Jakub Palider <jpalider@marvell.com> Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/48652 Reviewed-by:
Sunil Kovvuri Goutham <Sunil.Goutham@cavium.com> Tested-by:
Sunil Kovvuri Goutham <Sunil.Goutham@cavium.com> Signed-off-by:
Ruiqiang Hao <Ruiqiang.Hao@windriver.com>
Loading
Please register or sign in to comment