diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/leds/ledtrig-timer.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/leds/ledtrig-timer.c')
-rw-r--r-- | drivers/leds/ledtrig-timer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/leds/ledtrig-timer.c b/drivers/leds/ledtrig-timer.c index 3b83406de752..82b77bd482ff 100644 --- a/drivers/leds/ledtrig-timer.c +++ b/drivers/leds/ledtrig-timer.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/timer.h> | 22 | #include <linux/timer.h> |
23 | #include <linux/ctype.h> | 23 | #include <linux/ctype.h> |
24 | #include <linux/leds.h> | 24 | #include <linux/leds.h> |
25 | #include <linux/slab.h> | ||
25 | #include "leds.h" | 26 | #include "leds.h" |
26 | 27 | ||
27 | struct timer_trig_data { | 28 | struct timer_trig_data { |
@@ -83,7 +84,7 @@ static ssize_t led_delay_on_store(struct device *dev, | |||
83 | unsigned long state = simple_strtoul(buf, &after, 10); | 84 | unsigned long state = simple_strtoul(buf, &after, 10); |
84 | size_t count = after - buf; | 85 | size_t count = after - buf; |
85 | 86 | ||
86 | if (*after && isspace(*after)) | 87 | if (isspace(*after)) |
87 | count++; | 88 | count++; |
88 | 89 | ||
89 | if (count == size) { | 90 | if (count == size) { |
@@ -127,7 +128,7 @@ static ssize_t led_delay_off_store(struct device *dev, | |||
127 | unsigned long state = simple_strtoul(buf, &after, 10); | 128 | unsigned long state = simple_strtoul(buf, &after, 10); |
128 | size_t count = after - buf; | 129 | size_t count = after - buf; |
129 | 130 | ||
130 | if (*after && isspace(*after)) | 131 | if (isspace(*after)) |
131 | count++; | 132 | count++; |
132 | 133 | ||
133 | if (count == size) { | 134 | if (count == size) { |