pinctrl: digicolor: add missing platform_set_drvdata() call
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 25 May 2016 05:58:52 +0000 (14:58 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 31 May 2016 08:30:38 +0000 (10:30 +0200)
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>
drivers/pinctrl/pinctrl-digicolor.c

index 30ee56427f560e6d816631c43e148de242ec216a..c8073d442dcb225bd529bcb264f10c65abb9d468 100644 (file)
@@ -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);
 }