diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-22 06:00:55 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-08-28 23:14:37 +0400 |
commit | db8ed174295f33e7c3441557a0caf296399ddea5 (patch) | |
tree | 7aeed6dd23febc28e744ed2be8fa3fa496d71d94 /drivers/pinctrl | |
parent | 608a26a7bc04a39cfd7041f31ca2b2100113d14e (diff) | |
download | linux-db8ed174295f33e7c3441557a0caf296399ddea5.tar.xz |
pinctrl: sh-pfc: remove unnecessary platform_set_drvdata()
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/sh-pfc/core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pinctrl/sh-pfc/core.c b/drivers/pinctrl/sh-pfc/core.c index 9e66614bbbb3..738f14f65cff 100644 --- a/drivers/pinctrl/sh-pfc/core.c +++ b/drivers/pinctrl/sh-pfc/core.c @@ -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; } |