From patchwork Fri Jun 10 09:35:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1807 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.45.109) by localhost6.localdomain6 with IMAP4-SSL; 10 Jun 2011 20:11:55 -0000 Delivered-To: patches@linaro.org Received: by 10.52.181.10 with SMTP id ds10cs301506vdc; Fri, 10 Jun 2011 02:35:26 -0700 (PDT) Received: by 10.14.11.132 with SMTP id 4mr833822eex.45.1307698525885; Fri, 10 Jun 2011 02:35:25 -0700 (PDT) Received: from eu1sys200aog120.obsmtp.com (eu1sys200aog120.obsmtp.com [207.126.144.149]) by mx.google.com with SMTP id q55si7069236eef.90.2011.06.10.02.35.19 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 10 Jun 2011 02:35:24 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.149 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.149; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.149 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) smtp.mail=linus.walleij@stericsson.com Received: from beta.dmz-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob120.postini.com ([207.126.147.11]) with SMTP ID DSNKTfHlV/paMxA/j04TujxPTYruB6zH/g+c@postini.com; Fri, 10 Jun 2011 09:35:24 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.16.71]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 19BCB44; Fri, 10 Jun 2011 09:35:18 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 9C3A550; Fri, 10 Jun 2011 09:35:17 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id 199BDA8074; Fri, 10 Jun 2011 11:35:13 +0200 (CEST) Received: from localhost.localdomain (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.83.0; Fri, 10 Jun 2011 11:35:17 +0200 From: Linus Walleij To: Richard Purdie , Cc: Lee Jones , Linus Walleij Subject: [PATCH] leds/lp5521: provide section tagging Date: Fri, 10 Jun 2011 11:35:13 +0200 Message-ID: <1307698513-1622-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.3.2 MIME-Version: 1.0 From: Linus Walleij Tag the probe() and remove() function as __devinit and __devexit respectively. Signed-off-by: Linus Walleij --- 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, };