linux/drivers/net/can
Uwe Kleine-König aaa278e646 can: sun4i_can: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart from
emitting a warning) and this typically results in resource leaks. To improve
here there is a quest to make the remove callback return void. In the first
step of this quest all drivers are converted to .remove_new() which already
returns void. Eventually after all drivers are converted, .remove_new() is
renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Gerhard Bertelsmann <info@gerhard-bertelsmann.de>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20230512212725.143824-18-u.kleine-koenig@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2023-05-15 22:53:51 +02:00
..
c_can can: c_can: Convert to platform remove callback returning void 2023-05-15 22:53:49 +02:00
cc770 can: cc770_platform: Convert to platform remove callback returning void 2023-05-15 22:53:49 +02:00
ctucanfd can: ctucanfd: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
dev can: bittiming: can_validate_bitrate(): report error via netlink 2023-02-06 13:57:27 +01:00
flexcan can: flexcan: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
ifi_canfd can: ifi_canfd: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
m_can can: m_can: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
mscan can: mscan: mpc5xxx_can: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
peak_canfd can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00
rcar can: rcar: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
sja1000 can: sja1000_platform: Convert to platform remove callback returning void 2023-05-15 22:53:51 +02:00
slcan can: slcan: fix freed work crash 2022-12-07 10:32:24 +01:00
softing can: softing: Convert to platform remove callback returning void 2023-05-15 22:53:51 +02:00
spi linux-can-next-for-6.3-20230206 2023-02-07 15:54:09 +01:00
usb can: usb: f81604: add Fintek F81604 support 2023-05-15 22:53:49 +02:00
at91_can.c can: at91_can: Convert to platform remove callback returning void 2023-05-15 22:53:49 +02:00
bxcan.c can: bxcan: Convert to platform remove callback returning void 2023-05-15 22:53:49 +02:00
can327.c can: can327: flush TX_work on ldisc .close() 2022-12-07 10:32:36 +01:00
grcan.c can: grcan: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
janz-ican3.c can: janz-ican3: Convert to platform remove callback returning void 2023-05-15 22:53:50 +02:00
Kconfig can: bxcan: add support for ST bxCAN controller 2023-03-28 11:43:36 +02:00
kvaser_pciefd.c can: kvaser_pciefd: Remove redundant pci_clear_master 2023-03-24 19:11:20 +01:00
Makefile can: bxcan: add support for ST bxCAN controller 2023-03-28 11:43:36 +02:00
sun4i_can.c can: sun4i_can: Convert to platform remove callback returning void 2023-05-15 22:53:51 +02:00
ti_hecc.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00
vcan.c can: dev: add CAN XL support to virtual CAN 2022-09-15 09:08:09 +02:00
vxcan.c rtnetlink: pass netlink message header and portid to rtnl_configure_link() 2022-10-31 18:10:21 -07:00
xilinx_can.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00