diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-05-25 05:58:52 (GMT) |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-05-31 08:30:38 (GMT) |
commit | 8b2b3dcb343bf8cb62efc1bd6a9dbe850005e2ac (patch) | |
tree | 5974f92a9ab4d59d6b3433d15732cc222b6915a8 /drivers/pinctrl/pinctrl-digicolor.c | |
parent | a672eb5e277d2d7ee9b585d468460f9890d2cebc (diff) | |
download | linux-8b2b3dcb343bf8cb62efc1bd6a9dbe850005e2ac.tar.xz |
pinctrl: digicolor: add missing platform_set_drvdata() call
gc_pinctrl_remove() calls platform_get_drvdata(), but I see neither
platform_set_drvdata() nor dev_set_drvdata() anywhere in this driver.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-digicolor.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-digicolor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-digicolor.c b/drivers/pinctrl/pinctrl-digicolor.c index 30ee564..c8073d4 100644 --- a/drivers/pinctrl/pinctrl-digicolor.c +++ b/drivers/pinctrl/pinctrl-digicolor.c @@ -332,6 +332,8 @@ static int dc_pinctrl_probe(struct platform_device *pdev) return PTR_ERR(pmap->pctl); } + platform_set_drvdata(pdev, pmap); + return dc_gpiochip_add(pmap, pdev->dev.of_node); } |