Commit 8b2b3dcb authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Linus Walleij

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: default avatarBaruch Siach <baruch@tkos.co.il>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a672eb5e
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment