]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/leds/leds-lm3530.c: add __devexit_p where needed
authorAxel Lin <axel.lin@gmail.com>
Tue, 1 Nov 2011 00:12:15 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 1 Nov 2011 00:30:55 +0000 (17:30 -0700)
commit3a6047a7f53d14f540b4454fd8623e6ceba27690
tree08b6b5f6999f53a898a0a7edc3a24e991c20d195
parent5cedc08a85ad68d93413ed34724870e053e81749
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>
drivers/leds/leds-lm3530.c