2011-06-03 01:52:00

by Axel Lin

[permalink] [raw]
Subject: [PATCH 1/2] mtd: nuc900_nand: add missing nand_release in nuc900_nand_remove

Signed-off-by: Axel Lin <[email protected]>
---
drivers/mtd/nand/nuc900_nand.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/nand/nuc900_nand.c b/drivers/mtd/nand/nuc900_nand.c
index 9c30a0b..fa8faed 100644
--- a/drivers/mtd/nand/nuc900_nand.c
+++ b/drivers/mtd/nand/nuc900_nand.c
@@ -339,6 +339,7 @@ static int __devexit nuc900_nand_remove(struct platform_device *pdev)
struct nuc900_nand *nuc900_nand = platform_get_drvdata(pdev);
struct resource *res;

+ nand_release(&nuc900_nand->mtd);
iounmap(nuc900_nand->reg);

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
--
1.7.4.1



2011-06-03 01:53:31

by Axel Lin

[permalink] [raw]
Subject: [PATCH 2/2] mtd: nomadik_nand: add missing nand_release in nomadik_nand_remove

Signed-off-by: Axel Lin <[email protected]>
---
drivers/mtd/nand/nomadik_nand.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/nand/nomadik_nand.c b/drivers/mtd/nand/nomadik_nand.c
index b6a5c86..b463ecf 100644
--- a/drivers/mtd/nand/nomadik_nand.c
+++ b/drivers/mtd/nand/nomadik_nand.c
@@ -187,6 +187,7 @@ static int nomadik_nand_remove(struct platform_device *pdev)
pdata->exit();

if (host) {
+ nand_release(&host->mtd);
iounmap(host->cmd_va);
iounmap(host->data_va);
iounmap(host->addr_va);
--
1.7.4.1


2011-06-03 02:26:15

by Wan ZongShun

[permalink] [raw]
Subject: Re: [PATCH 1/2] mtd: nuc900_nand: add missing nand_release in nuc900_nand_remove

2011/6/3 Axel Lin <[email protected]>:
> Signed-off-by: Axel Lin <[email protected]>

Acked-by: Wan ZongShun <[email protected]>

Thanks!

> ---
>  drivers/mtd/nand/nuc900_nand.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/mtd/nand/nuc900_nand.c b/drivers/mtd/nand/nuc900_nand.c
> index 9c30a0b..fa8faed 100644
> --- a/drivers/mtd/nand/nuc900_nand.c
> +++ b/drivers/mtd/nand/nuc900_nand.c
> @@ -339,6 +339,7 @@ static int __devexit nuc900_nand_remove(struct platform_device *pdev)
>        struct nuc900_nand *nuc900_nand = platform_get_drvdata(pdev);
>        struct resource *res;
>
> +       nand_release(&nuc900_nand->mtd);
>        iounmap(nuc900_nand->reg);
>
>        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> --
> 1.7.4.1
>
>
>
>



--
Wan ZongShun.
http://www.mcuos.com

2011-06-06 10:18:16

by Artem Bityutskiy

[permalink] [raw]
Subject: Re: [PATCH 1/2] mtd: nuc900_nand: add missing nand_release in nuc900_nand_remove

On Fri, 2011-06-03 at 09:51 +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <[email protected]>
> ---
> drivers/mtd/nand/nuc900_nand.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)

Pushed both to l2-mtd-2.6.git, thanks.

--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

2011-06-06 10:23:54

by Artem Bityutskiy

[permalink] [raw]
Subject: Re: [PATCH 2/2] mtd: nomadik_nand: add missing nand_release in nomadik_nand_remove

On Fri, 2011-06-03 at 09:53 +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <[email protected]>
> ---
> drivers/mtd/nand/nomadik_nand.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)

Pushed to l2-mtd-2.6.git, thanks!

--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)