pinctrl: sh-pfc: remove unnecessary platform_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Thu, 22 Aug 2013 02:00:55 +0000 (11:00 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 28 Aug 2013 19:14:37 +0000 (21:14 +0200)
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/core.c

index 9e66614bbbb385b05c175ac5e6ea98c4e5a7ea5f..738f14f65cff1c759e67a47d8ae4950439edcd09 100644 (file)
@@ -539,8 +539,6 @@ static int sh_pfc_remove(struct platform_device *pdev)
        if (pfc->info->ops && pfc->info->ops->exit)
                pfc->info->ops->exit(pfc);
 
-       platform_set_drvdata(pdev, NULL);
-
        return 0;
 }