[PATCH 03/50] pinctrl: bcm281xx: Use devm_pinctrl_register() for pinctrl registration
Ray Jui
ray.jui at broadcom.com
Wed Feb 24 10:25:38 PST 2016
On 2/24/2016 5:15 AM, Laxman Dewangan wrote:
> Use devm_pinctrl_register() for pin control registration.
>
> Signed-off-by: Laxman Dewangan <ldewangan at nvidia.com>
> Cc: Ray Jui <rjui at broadcom.com>
> ---
> drivers/pinctrl/bcm/pinctrl-bcm281xx.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/pinctrl/bcm/pinctrl-bcm281xx.c b/drivers/pinctrl/bcm/pinctrl-bcm281xx.c
> index c3c692e..0c0c0f0 100644
> --- a/drivers/pinctrl/bcm/pinctrl-bcm281xx.c
> +++ b/drivers/pinctrl/bcm/pinctrl-bcm281xx.c
> @@ -1422,9 +1422,7 @@ static int __init bcm281xx_pinctrl_probe(struct platform_device *pdev)
> bcm281xx_pinctrl_desc.pins = bcm281xx_pinctrl.pins;
> bcm281xx_pinctrl_desc.npins = bcm281xx_pinctrl.npins;
>
> - pctl = pinctrl_register(&bcm281xx_pinctrl_desc,
> - &pdev->dev,
> - pdata);
> + pctl = devm_pinctrl_register(&pdev->dev, &bcm281xx_pinctrl_desc, pdata);
> if (IS_ERR(pctl)) {
> dev_err(&pdev->dev, "Failed to register pinctrl\n");
> return PTR_ERR(pctl);
>
Acked-by: Ray Jui <ray.jui at broadcom.com>
Thanks!
Ray
More information about the linux-rpi-kernel
mailing list