aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/rionet.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-07-30 05:34:01 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-05 20:08:14 -0400
commit71db87ba570038497db1227b7dc61113c4156565 (patch)
tree55822a231eae32bf81af81148f04dacc1d30c67d /drivers/net/rionet.c
parent52cdbdd49853dfa856082edb0f4c4c0249d9df07 (diff)
bus: subsys: update return type of ->remove_dev() to void
Its return value is not used by the subsys core and nothing meaningful can be done with it, even if we want to use it. The subsys device is anyway getting removed. Update prototype of ->remove_dev() to make its return type as void. Fix all usage sites as well. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/rionet.c')
-rw-r--r--drivers/net/rionet.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/rionet.c b/drivers/net/rionet.c
index dac7a0d9bb46..01f08a7751f7 100644
--- a/drivers/net/rionet.c
+++ b/drivers/net/rionet.c
@@ -396,7 +396,7 @@ static int rionet_close(struct net_device *ndev)
396 return 0; 396 return 0;
397} 397}
398 398
399static int rionet_remove_dev(struct device *dev, struct subsys_interface *sif) 399static void rionet_remove_dev(struct device *dev, struct subsys_interface *sif)
400{ 400{
401 struct rio_dev *rdev = to_rio_dev(dev); 401 struct rio_dev *rdev = to_rio_dev(dev);
402 unsigned char netid = rdev->net->hport->id; 402 unsigned char netid = rdev->net->hport->id;
@@ -416,8 +416,6 @@ static int rionet_remove_dev(struct device *dev, struct subsys_interface *sif)
416 } 416 }
417 } 417 }
418 } 418 }
419
420 return 0;
421} 419}
422 420
423static void rionet_get_drvinfo(struct net_device *ndev, 421static void rionet_get_drvinfo(struct net_device *ndev,