Patchwork [3/6] rtc-pcf2123: move pcf2123_remove to .devexit.text

login
register
mail settings
Submitter Alessandro Zummo
Date Jan. 20, 2010, 11:54 p.m.
Message ID <20100121005421.588d1903@linux.lan.towertech.it>
Download mbox | patch
Permalink /patch/43383/
State New
Headers show

Comments

Alessandro Zummo - Jan. 20, 2010, 11:54 p.m.
From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

The function pcf2123_remove is used only wrapped by __devexit_p so define
it using __devexit.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Christian Pellegrin <chripell@fsfe.org>
Cc: Chris Verges <chrisv@cyberswitching.com>
Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>

patch-name: 31-38-move-pcf2123_remove-to-.devexit.text.patch
patch-rev1: 7a13f51dfc4360f9ff3338d4f88dd56344f096be
patch-rev2: 2016bb275bbeff1778779932b50d77f77f65fb24
---
 drivers/rtc/rtc-pcf2123.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/rtc/rtc-pcf2123.c b/drivers/rtc/rtc-pcf2123.c
index e75df9d..2ceb365 100644
--- a/drivers/rtc/rtc-pcf2123.c
+++ b/drivers/rtc/rtc-pcf2123.c
@@ -315,7 +315,7 @@  kfree_exit:
 	return ret;
 }
 
-static int pcf2123_remove(struct spi_device *spi)
+static int __devexit pcf2123_remove(struct spi_device *spi)
 {
 	struct pcf2123_plat_data *pdata = spi->dev.platform_data;
 	int i;