Skip to content

Commit

Permalink
drivers/leds/leds-lm3530.c: add __devexit_p where needed
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Shreshtha Kumar SAHU <[email protected]>
Cc: Richard Purdie <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
AxelLin authored and torvalds committed Nov 1, 2011
1 parent fa0ea0e commit 93f5398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/leds-lm3530.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ MODULE_DEVICE_TABLE(i2c, lm3530_id);

static struct i2c_driver lm3530_i2c_driver = {
.probe = lm3530_probe,
.remove = lm3530_remove,
.remove = __devexit_p(lm3530_remove),
.id_table = lm3530_id,
.driver = {
.name = LM3530_NAME,
Expand Down

0 comments on commit 93f5398

Please sign in to comment.