[PATCH] leds/lp5521: provide section tagging

From: Linus Walleij
Date: Fri Jun 10 2011 - 05:35:31 EST


From: Linus Walleij <linus.walleij@xxxxxxxxxx>

Tag the probe() and remove() function as __devinit and __devexit
respectively.

Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
---
drivers/leds/leds-lp5521.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/leds/leds-lp5521.c b/drivers/leds/leds-lp5521.c
index c0cff64..7c00294 100644
--- a/drivers/leds/leds-lp5521.c
+++ b/drivers/leds/leds-lp5521.c
@@ -637,8 +637,8 @@ static int __init lp5521_init_led(struct lp5521_led *led,
return 0;
}

-static int lp5521_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int __devinit lp5521_probe(struct i2c_client *client,
+ const struct i2c_device_id *id)
{
struct lp5521_chip *chip;
struct lp5521_platform_data *pdata;
@@ -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,
};

--
1.7.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/