mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
siox: Make remove callback return void
The driver core ignores the return value of the remove callback, so don't give siox drivers the chance to provide a value. All siox drivers only allocate devm-managed resources in .probe, so there is no .remove callback to fix. Tested-by: Thorsten Scherer <t.scherer@eckelmann.de> Acked-by: Thorsten Scherer <t.scherer@eckelmann.de> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20201125093106.240643-3-u.kleine-koenig@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
07d9a767ae
commit
1c12c27086
2 changed files with 3 additions and 4 deletions
|
@ -36,7 +36,7 @@ bool siox_device_connected(struct siox_device *sdevice);
|
|||
|
||||
struct siox_driver {
|
||||
int (*probe)(struct siox_device *sdevice);
|
||||
int (*remove)(struct siox_device *sdevice);
|
||||
void (*remove)(struct siox_device *sdevice);
|
||||
void (*shutdown)(struct siox_device *sdevice);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue