[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d5eeb969-8c51-e716-ff21-084feed01183@broadcom.com>
Date: Wed, 24 Feb 2016 10:25:38 -0800
From: Ray Jui <ray.jui@...adcom.com>
To: Laxman Dewangan <ldewangan@...dia.com>, linus.walleij@...aro.org,
corbet@....net, lee@...nel.org
Cc: linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-gpio@...r.kernel.org, linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org,
bcm-kernel-feedback-list@...adcom.com,
linux-mediatek@...ts.infradead.org, Ray Jui <rjui@...adcom.com>
Subject: Re: [PATCH 03/50] pinctrl: bcm281xx: Use devm_pinctrl_register() for
pinctrl registration
On 2/24/2016 5:15 AM, Laxman Dewangan wrote:
> Use devm_pinctrl_register() for pin control registration.
>
> Signed-off-by: Laxman Dewangan <ldewangan@...dia.com>
> Cc: Ray Jui <rjui@...adcom.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@...adcom.com>
Thanks!
Ray
Powered by blists - more mailing lists