summaryrefslogtreecommitdiff
path: root/drivers/hwmon/l3g4200d.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/l3g4200d.c')
-rw-r--r--drivers/hwmon/l3g4200d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/l3g4200d.c b/drivers/hwmon/l3g4200d.c
index bd78d4b003b..cb362ab7254 100644
--- a/drivers/hwmon/l3g4200d.c
+++ b/drivers/hwmon/l3g4200d.c
@@ -325,13 +325,13 @@ static ssize_t l3g4200d_store_powermode(struct device *dev,
received_value == PM_OFF) {
ddata->powermode = received_value;
mutex_unlock(&ddata->lock);
- return 0;
+ return count;
}
/* if sent value is same as current value do nothing */
if (ddata->powermode == received_value) {
mutex_unlock(&ddata->lock);
- return 0;
+ return count;
}
/* turn on the power suppliy if it was turned off previously */