mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +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:
parent
ac746c8520
commit
e99fa4230f
@ -1216,12 +1216,10 @@ int vsc73xx_probe(struct vsc73xx *vsc)
|
||||
}
|
||||
EXPORT_SYMBOL(vsc73xx_probe);
|
||||
|
||||
int vsc73xx_remove(struct vsc73xx *vsc)
|
||||
void vsc73xx_remove(struct vsc73xx *vsc)
|
||||
{
|
||||
dsa_unregister_switch(vsc->ds);
|
||||
gpiod_set_value(vsc->reset, 1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(vsc73xx_remove);
|
||||
|
||||
|
@ -26,5 +26,5 @@ struct vsc73xx_ops {
|
||||
|
||||
int vsc73xx_is_addr_valid(u8 block, u8 subblock);
|
||||
int vsc73xx_probe(struct vsc73xx *vsc);
|
||||
int vsc73xx_remove(struct vsc73xx *vsc);
|
||||
void vsc73xx_remove(struct vsc73xx *vsc);
|
||||
void vsc73xx_shutdown(struct vsc73xx *vsc);
|
||||
|
Loading…
Reference in New Issue
Block a user