Re: [PATCH 2/2] serial: MIPS: lantiq: make driver use pinctrl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/08/13 14:31, John Crispin wrote:
> From: Thomas Langer <thomas.langer@xxxxxxxxxx>
> 
> Add use of devm_pinctrl_get_select_default to active default pinctrl settings.
> 
> Signed-off-by: Thomas Langer <thomas.langer@xxxxxxxxxx>
> Acked-by: John Crispin <blogic@xxxxxxxxxxx>
> ---
>  drivers/tty/serial/lantiq.c |    7 +++++++
>  1 file changed, 7 insertions(+)


> @@ -719,6 +722,10 @@ lqasc_probe(struct platform_device *pdev)
>  	port->irq	= irqres[0].start;
>  	port->mapbase	= mmres->start;
>  
> +	pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
> +	if (IS_ERR(pinctrl))
> +		dev_warn(&pdev->dev, "pins are not configured from the driver\n");

I believe since v3.9 (specifically commit ab78029) this happens
automatically.

Cheers
James



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux