drivers/leds/leds-lp5521.c: provide section tagging
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Jul 2011 00:13:15 +0000 (17:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:15 +0000 (20:57 -0700)
Tag the and remove() function as __devexit respectively.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/leds/leds-lp5521.c

index cc1dc4817facfcc52e08d0d9f8169dec64271aee..9fc122c81f06cfc350ff224d432c1ed0dddeadd8 100644 (file)
@@ -744,7 +744,7 @@ fail1:
        return ret;
 }
 
-static int lp5521_remove(struct i2c_client *client)
+static int __devexit lp5521_remove(struct i2c_client *client)
 {
        struct lp5521_chip *chip = i2c_get_clientdata(client);
        int i;
@@ -775,7 +775,7 @@ static struct i2c_driver lp5521_driver = {
                .name   = "lp5521",
        },
        .probe          = lp5521_probe,
-       .remove         = lp5521_remove,
+       .remove         = __devexit_p(lp5521_remove),
        .id_table       = lp5521_id,
 };