diff options
| author | Alan Tull <[email protected]> | 2015-10-22 17:38:37 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-10-23 23:49:44 +0000 |
| commit | 654ba4cc0f3ed7c0f08bfb39f66059d8c42943ee (patch) | |
| tree | 0afa1399bea345e12cf72ffac476190f27562275 /drivers/fpga/zynq-fpga.c | |
| parent | fpga: zynq-fpga: Change fw format to handle bin instead of bit. (diff) | |
| download | kernel-654ba4cc0f3ed7c0f08bfb39f66059d8c42943ee.tar.gz kernel-654ba4cc0f3ed7c0f08bfb39f66059d8c42943ee.zip | |
fpga manager: ensure lifetime with of_fpga_mgr_get
Ensure device and driver lifetime from of_fpga_mgr_get() to
fpga_mgr_put().
* Don't put_device() in of_fpga_mgr_get, do it in fpga_mgr_put().
(still do put_device if there is an error).
* Do module_get on the low level driver.
* Don't need to module_get(THIS_MODULE) since we won't be allowed
to unload the fpga manager core without unloading low level
driver first.
* Remove unnedessary null check for node pointer.
Signed-off-by: Alan Tull <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/zynq-fpga.c')
0 files changed, 0 insertions, 0 deletions
