drivers/leds/leds-lm3530.c: add __devexit_p where needed
authorAxel Lin <[email protected]>
Tue, 1 Nov 2011 00:12:15 +0000 (17:12 -0700)
committerLinus Torvalds <[email protected]>
Tue, 1 Nov 2011 00:30:55 +0000 (17:30 -0700)
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]>
drivers/leds/leds-lm3530.c

index d2d25e6df514aefd0c309f95f57a3d5eeb941c04..4dc510fdfa06d8d778ea845d7e4d796f54d359f4 100644 (file)
@@ -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,