diff options
Diffstat (limited to 'drivers/base/bus.c')
-rw-r--r-- | drivers/base/bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c index 3cb04bb04c2b..80ce88de56fa 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c | |||
@@ -36,7 +36,7 @@ drv_attr_show(struct kobject * kobj, struct attribute * attr, char * buf) | |||
36 | { | 36 | { |
37 | struct driver_attribute * drv_attr = to_drv_attr(attr); | 37 | struct driver_attribute * drv_attr = to_drv_attr(attr); |
38 | struct device_driver * drv = to_driver(kobj); | 38 | struct device_driver * drv = to_driver(kobj); |
39 | ssize_t ret = 0; | 39 | ssize_t ret = -EIO; |
40 | 40 | ||
41 | if (drv_attr->show) | 41 | if (drv_attr->show) |
42 | ret = drv_attr->show(drv, buf); | 42 | ret = drv_attr->show(drv, buf); |
@@ -49,7 +49,7 @@ drv_attr_store(struct kobject * kobj, struct attribute * attr, | |||
49 | { | 49 | { |
50 | struct driver_attribute * drv_attr = to_drv_attr(attr); | 50 | struct driver_attribute * drv_attr = to_drv_attr(attr); |
51 | struct device_driver * drv = to_driver(kobj); | 51 | struct device_driver * drv = to_driver(kobj); |
52 | ssize_t ret = 0; | 52 | ssize_t ret = -EIO; |
53 | 53 | ||
54 | if (drv_attr->store) | 54 | if (drv_attr->store) |
55 | ret = drv_attr->store(drv, buf, count); | 55 | ret = drv_attr->store(drv, buf, count); |