Patchwork [2/3] MTD/pxa: use __devinit for pxa2xx_flash_probe

login
register
mail settings
Submitter Wan ZongShun
Date June 5, 2010, 6:44 a.m.
Message ID <4C09F25E.8090908@gmail.com>
Download mbox | patch
Permalink /patch/54738/
State New
Headers show

Comments

Wan ZongShun - June 5, 2010, 6:44 a.m.
This patch is to use the '__devinit' for pxa2xx_flash_probe.


Signed-off-by :Wan ZongShun <mcuos.com@gmail.com>
---
 drivers/mtd/maps/pxa2xx-flash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Eric Miao - June 5, 2010, 7:14 a.m.
2010/6/5 Wan ZongShun <mcuos.com@gmail.com>:
> This patch is to use the '__devinit' for pxa2xx_flash_probe.
>
>
> Signed-off-by :Wan ZongShun <mcuos.com@gmail.com>

Acked.

> ---
>  drivers/mtd/maps/pxa2xx-flash.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c
> index 1d2583f..43f8bb8 100644
> --- a/drivers/mtd/maps/pxa2xx-flash.c
> +++ b/drivers/mtd/maps/pxa2xx-flash.c
> @@ -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
>

Patch

diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c
index 1d2583f..43f8bb8 100644
--- a/drivers/mtd/maps/pxa2xx-flash.c
+++ b/drivers/mtd/maps/pxa2xx-flash.c
@@ -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;