summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-05-25 14:58:52 +0900
committerLinus Walleij <linus.walleij@linaro.org>2016-05-31 10:30:38 +0200
commit8b2b3dcb343bf8cb62efc1bd6a9dbe850005e2ac (patch)
tree5974f92a9ab4d59d6b3433d15732cc222b6915a8
parenta672eb5e277d2d7ee9b585d468460f9890d2cebc (diff)
downloadop-kernel-dev-8b2b3dcb343bf8cb62efc1bd6a9dbe850005e2ac.zip
op-kernel-dev-8b2b3dcb343bf8cb62efc1bd6a9dbe850005e2ac.tar.gz
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>
-rw-r--r--drivers/pinctrl/pinctrl-digicolor.c2
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);
}
OpenPOWER on IntegriCloud