mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
pinctrl: nsp-gpio: Use devm_pinctrl_register() for pinctrl registration
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Cc: Ray Jui <rjui@broadcom.com> Cc: Scott Branden <sbranden@broadcom.com> Cc: Jon Mason <jonmason@broadcom.com> Acked-by: Ray Jui <ray.jui@broadcom.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
ee17e04102
commit
315d118f1a
@ -609,7 +609,7 @@ static int nsp_gpio_register_pinconf(struct nsp_gpio *chip)
|
||||
pctldesc->npins = gc->ngpio;
|
||||
pctldesc->confops = &nsp_pconf_ops;
|
||||
|
||||
chip->pctl = pinctrl_register(pctldesc, chip->dev, chip);
|
||||
chip->pctl = devm_pinctrl_register(chip->dev, pctldesc, chip);
|
||||
if (IS_ERR(chip->pctl)) {
|
||||
dev_err(chip->dev, "unable to register pinctrl device\n");
|
||||
return PTR_ERR(chip->pctl);
|
||||
|
Loading…
Reference in New Issue
Block a user