mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 00:24:12 +08:00
fpga: clarify that unregister functions also free
The following functions also free the struct. Add that fact to the function documentation. - fpga_mgr_free - fpga_bridge_free - fpga_region_free Signed-off-by: Alan Tull <atull@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fcc803956a
commit
fdff4053d5
@ -412,7 +412,7 @@ int fpga_bridge_register(struct fpga_bridge *bridge)
|
|||||||
EXPORT_SYMBOL_GPL(fpga_bridge_register);
|
EXPORT_SYMBOL_GPL(fpga_bridge_register);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fpga_bridge_unregister - unregister a fpga bridge driver
|
* fpga_bridge_unregister - unregister and free a fpga bridge
|
||||||
* @bridge: FPGA bridge struct created by fpga_bridge_create
|
* @bridge: FPGA bridge struct created by fpga_bridge_create
|
||||||
*/
|
*/
|
||||||
void fpga_bridge_unregister(struct fpga_bridge *bridge)
|
void fpga_bridge_unregister(struct fpga_bridge *bridge)
|
||||||
|
@ -633,7 +633,7 @@ error_device:
|
|||||||
EXPORT_SYMBOL_GPL(fpga_mgr_register);
|
EXPORT_SYMBOL_GPL(fpga_mgr_register);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fpga_mgr_unregister - unregister a FPGA manager
|
* fpga_mgr_unregister - unregister and free a FPGA manager
|
||||||
* @mgr: fpga manager struct
|
* @mgr: fpga manager struct
|
||||||
*/
|
*/
|
||||||
void fpga_mgr_unregister(struct fpga_manager *mgr)
|
void fpga_mgr_unregister(struct fpga_manager *mgr)
|
||||||
|
@ -232,7 +232,7 @@ int fpga_region_register(struct fpga_region *region)
|
|||||||
EXPORT_SYMBOL_GPL(fpga_region_register);
|
EXPORT_SYMBOL_GPL(fpga_region_register);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fpga_region_unregister - unregister a FPGA region
|
* fpga_region_unregister - unregister and free a FPGA region
|
||||||
* @region: FPGA region
|
* @region: FPGA region
|
||||||
*/
|
*/
|
||||||
void fpga_region_unregister(struct fpga_region *region)
|
void fpga_region_unregister(struct fpga_region *region)
|
||||||
|
Loading…
Reference in New Issue
Block a user