linux/drivers/staging/gpib
Dave Penkler 579b6f18c5 staging: gpib: Agilent usb code cleanup
Remove useless #ifdef RESET_USB_CONFIG code.

Change kalloc / memset to kzalloc

The attach function was not freeing the private data on error
returns. Separate the releasing of urbs and private data and
add a common error exit for attach failure.

Set the board private data pointer to NULL after freeing
the private data.

Reduce console spam by emitting only one attach message.

Change last pr_err in attach to dev_err

Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20250118145046.12181-3-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-19 09:06:31 +01:00
..
agilent_82350b staging: gpib: Use __iomem attribute for io addresses 2025-01-15 18:35:56 +01:00
agilent_82357a staging: gpib: Agilent usb code cleanup 2025-01-19 09:06:31 +01:00
cb7210 staging: gpib: fix prefixing 0x with decimal output 2025-01-15 18:37:40 +01:00
cec staging: gpib: Modernize gpib_interface_t initialization and make static 2025-01-13 06:43:34 +01:00
common staging: gpib: Use C99 syntax and make static 2025-01-15 18:35:57 +01:00
eastwood staging: gpib: Use __iomem attribute for io addresses 2025-01-15 18:35:56 +01:00
fmh_gpib staging: gpib: Use __iomem attribute for io addresses 2025-01-15 18:35:56 +01:00
gpio staging: gpib: Use C99 syntax and make static 2025-01-15 18:35:57 +01:00
hp_82335 staging: gpib: Modernize gpib_interface_t initialization and make static 2025-01-13 06:43:34 +01:00
hp_82341 staging: gpib: Modernize gpib_interface_t initialization and make static 2025-01-13 06:43:34 +01:00
include staging: gpib: Fix inadvertent negative shift 2025-01-16 13:23:35 +01:00
ines staging: gpib: Use C99 syntax and make static 2025-01-15 18:35:57 +01:00
lpvo_usb_gpib staging: gpib: Use __user for user space pointers 2025-01-15 18:35:56 +01:00
nec7210 staging: gpib: fix address space mixup 2024-12-20 16:44:15 +01:00
ni_usb staging: gpib: Add missing mutex unlock in ni usb driver 2025-01-13 06:43:34 +01:00
pc2 staging: gpib: Avoid plain integers as NULL pointers 2025-01-15 18:35:57 +01:00
tms9914 staging: gpib: fix address space mixup 2024-12-20 16:44:15 +01:00
tnt4882 staging: gpib: Avoid plain integers as NULL pointers 2025-01-15 18:35:57 +01:00
uapi staging: gpib: avoid unused const variables 2024-10-19 09:57:03 +02:00
Kconfig staging: gpib: use ioport_map 2024-12-20 16:44:15 +01:00
Makefile staging: gpib: Replace custom debug with dev_dbg 2024-11-07 09:27:34 +01:00
TODO staging: gpib: Add TODO file 2024-11-04 00:50:53 +01:00