MTD/pxa: use __devinit for pxa2xx_flash_probe
PATCH 2/3 MTD/pxa: use __devinit for pxa2xx_flash_probe
This patch is to use the '__devinit' for pxa2xx_flash_probe.
Signed-off-by Wan ZongShun <[email protected]>
--- drivers/mtd/maps/pxa2xx-flash.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/maps/pxa2xx-flash.c +1 -1
@@ -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
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' forpxa2xx_flash_probe.Signed-off-by Wan ZongShun <[email protected]>
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@@ -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