diff options
| author | 2024-12-31 00:26:31 +0530 | |
|---|---|---|
| committer | 2025-01-07 15:38:56 +0100 | |
| commit | 26098b787c3fd1de6ab40d26b6283c4a5e24543a (patch) | |
| tree | 84620e789ca5b644eda47520ac3412eea8c69e63 /include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com | |
| parent | staging: gpib: hp_82341: Handle gpib_register_driver() errors (diff) | |
staging: gpib: ines: Handle gpib_register_driver() errors
The function ines_pcmcia_init_module() can be replaced by calling
pcmcia_register_driver() directly. The error value from this
function is not returned and the previous registering functions
are not unregistered.
The function gpib_register_driver() can fail and similar to
pcmcia_register_driver() function failing, the previous registering
functions are not unregistered.
Replace cb_pcmcia_init_module() with pcmcia_register_driver().
Unregister the gpib and pci register functions if the subsequent
gpib or pcmcia register functions fail and return the error value.
Add pr_err() statements indicating the fail and error value.
Signed-off-by: Nihar Chaithanya <niharchaithanya@gmail.com>
Link: https://lore.kernel.org/r/20241230185633.175690-12-niharchaithanya@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
