[PATCH 1/3] mtd: onenand/generic: Remove redundant platform_set_drvdata()
Sachin Kamat
sachin.kamat at linaro.org
Tue Jun 4 08:02:45 EDT 2013
On 3 May 2013 17:07, Sachin Kamat <sachin.kamat at linaro.org> wrote:
> Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
> driver is bound) removes the need to set driver data field to
> NULL.
>
> Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
> Cc: Kyungmin Park <kyungmin.park at samsung.com>
> ---
> drivers/mtd/onenand/generic.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/mtd/onenand/generic.c b/drivers/mtd/onenand/generic.c
> index 9f11562..42520a3 100644
> --- a/drivers/mtd/onenand/generic.c
> +++ b/drivers/mtd/onenand/generic.c
> @@ -94,8 +94,6 @@ static int generic_onenand_remove(struct platform_device *pdev)
> struct resource *res = pdev->resource;
> unsigned long size = resource_size(res);
>
> - platform_set_drvdata(pdev, NULL);
> -
> if (info) {
> onenand_release(&info->mtd);
> release_mem_region(res->start, size);
> --
> 1.7.9.5
>
Ping on this series.
--
With warm regards,
Sachin
More information about the linux-mtd
mailing list