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>
This commit is contained in:
Masahiro Yamada 2016-05-25 14:58:52 +09:00 committed by Linus Walleij
parent a672eb5e27
commit 8b2b3dcb34

View 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);
}