2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 21:24:00 +08:00

net: dsa: vsc73xxx: Make vsc73xx_remove() return void

vsc73xx_remove() returns zero unconditionally and no caller checks the
returned value. So convert the function to return no value.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Uwe Kleine-König 2021-11-12 15:53:52 +01:00 committed by David S. Miller
parent ac746c8520
commit e99fa4230f
2 changed files with 2 additions and 4 deletions

View File

@ -1216,12 +1216,10 @@ int vsc73xx_probe(struct vsc73xx *vsc)
} }
EXPORT_SYMBOL(vsc73xx_probe); EXPORT_SYMBOL(vsc73xx_probe);
int vsc73xx_remove(struct vsc73xx *vsc) void vsc73xx_remove(struct vsc73xx *vsc)
{ {
dsa_unregister_switch(vsc->ds); dsa_unregister_switch(vsc->ds);
gpiod_set_value(vsc->reset, 1); gpiod_set_value(vsc->reset, 1);
return 0;
} }
EXPORT_SYMBOL(vsc73xx_remove); EXPORT_SYMBOL(vsc73xx_remove);

View File

@ -26,5 +26,5 @@ struct vsc73xx_ops {
int vsc73xx_is_addr_valid(u8 block, u8 subblock); int vsc73xx_is_addr_valid(u8 block, u8 subblock);
int vsc73xx_probe(struct vsc73xx *vsc); int vsc73xx_probe(struct vsc73xx *vsc);
int vsc73xx_remove(struct vsc73xx *vsc); void vsc73xx_remove(struct vsc73xx *vsc);
void vsc73xx_shutdown(struct vsc73xx *vsc); void vsc73xx_shutdown(struct vsc73xx *vsc);