mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-15 10:00:40 +09:00
Add device managed APIs devm_pinctrl_register() and devm_pinctrl_unregister() for the APIs pinctrl_register() and pinctrl_unregister(). This helps in reducing code in error path and sometimes removal of .remove callback for driver unbind. Change-Id: I6e5f092ed0d830f8fdf357d51ae7d65fe9fb2020 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Tao Huang <huangtao@rock-chips.com> (cherry picked from commit80e0f8d94d) Fix devm_pinctrl_dev_match with commit3024f920eb("pinctrl: zynq: Use devm_pinctrl_register() for pinctrl registration")