diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-10-31 20:12:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 20:30:55 -0400 |
commit | 93f539822ed60e18cd7fb417bff4efa1833af9f2 (patch) | |
tree | 08b6b5f6999f53a898a0a7edc3a24e991c20d195 /drivers/leds | |
parent | fa0ea0e16f748e36d65931227188ccf07f2b77c7 (diff) |
drivers/leds/leds-lm3530.c: add __devexit_p where needed
According to the comments in include/linux/init.h:
"Pointers to __devexit functions must use __devexit_p(function_name), the
wrapper will insert either the function_name or NULL, depending on the config
options."
We have __devexit annotation for lm3530_remove(), so add __devexit_p to
the `struct i2c_driver'.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Shreshtha Kumar SAHU <shreshthakumar.sahu@stericsson.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-lm3530.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-lm3530.c b/drivers/leds/leds-lm3530.c index d2d25e6df514..4dc510fdfa06 100644 --- a/drivers/leds/leds-lm3530.c +++ b/drivers/leds/leds-lm3530.c | |||
@@ -448,7 +448,7 @@ MODULE_DEVICE_TABLE(i2c, lm3530_id); | |||
448 | 448 | ||
449 | static struct i2c_driver lm3530_i2c_driver = { | 449 | static struct i2c_driver lm3530_i2c_driver = { |
450 | .probe = lm3530_probe, | 450 | .probe = lm3530_probe, |
451 | .remove = lm3530_remove, | 451 | .remove = __devexit_p(lm3530_remove), |
452 | .id_table = lm3530_id, | 452 | .id_table = lm3530_id, |
453 | .driver = { | 453 | .driver = { |
454 | .name = LM3530_NAME, | 454 | .name = LM3530_NAME, |