Skip to contentSkip to conversation

MTD/pxa: use __devinit for pxa2xx_flash_probe

PATCH Superseded Wan ZongShun 2 participants 2 messages Jun 5, 2010 Memory technology devices (MTD)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 MTD/pxa: use __devinit for pxa2xx_flash_probe

This patch is to use the '__devinit' for pxa2xx_flash_probe.

---
 drivers/mtd/maps/pxa2xx-flash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/maps/pxa2xx-flash.c +1 -1
index 1d2583f..43f8bb8 100644
@@ -51,7 +51,7 @@ struct pxa2xx_flash_info {
 static const char *probes[] = { "RedBoot", "cmdlinepart", NULL };
 
 
-static int __init pxa2xx_flash_probe(struct platform_device *pdev)
+static int __devinit pxa2xx_flash_probe(struct platform_device *pdev)
 {
 	struct flash_platform_data *flash = pdev->dev.platform_data;
 	struct pxa2xx_flash_info *info;
Signature · 1 line
1.6.3.3
#1 lore raw

PATCH 2/3 MTD/pxa: use __devinit for pxa2xx_flash_probe

2010/6/5 Wan ZongShun <[email protected]>:

Quoted 4 lines

This patch is to use the '__devinit' for pxa2xx_flash_probe.

Acked.

Quoted 20 lines

---
?drivers/mtd/maps/pxa2xx-flash.c | ? ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)

drivers/mtd/maps/pxa2xx-flash.c +1 -2
index 1d2583f..43f8bb8 100644
@@ -51,7 +51,7 @@ struct pxa2xx_flash_info {
 ?static const char *probes[] = { "RedBoot", "cmdlinepart", NULL };
 
 
-static int __init pxa2xx_flash_probe(struct platform_device *pdev)
+static int __devinit pxa2xx_flash_probe(struct platform_device *pdev)
 ?{
 ? ? ? ?struct flash_platform_data *flash = pdev->dev.platform_data;
 ? ? ? ?struct pxa2xx_flash_info *info;
--

1.6.3.3