From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Sun, 6 May 2012 16:41:56 +0100 Subject: [PATCH 2/9] serial: amba-pl011: adopt pinctrl support In-Reply-To: <1336318505-27043-3-git-send-email-shawn.guo@linaro.org> References: <1336318505-27043-1-git-send-email-shawn.guo@linaro.org> <1336318505-27043-3-git-send-email-shawn.guo@linaro.org> Message-ID: <20120506154156.GS897@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sun, May 06, 2012 at 11:34:58PM +0800, Shawn Guo wrote: > Cc: Greg Kroah-Hartman > Signed-off-by: Shawn Guo Looks fine. Acked-by: Russell King > --- > drivers/tty/serial/amba-pl011.c | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c > index 3d569cd..062ef8c 100644 > --- a/drivers/tty/serial/amba-pl011.c > +++ b/drivers/tty/serial/amba-pl011.c > @@ -52,6 +52,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -1916,6 +1917,7 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id) > { > struct uart_amba_port *uap; > struct vendor_data *vendor = id->data; > + struct pinctrl *pinctrl; > void __iomem *base; > int i, ret; > > @@ -1940,6 +1942,12 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id) > goto free; > } > > + pinctrl = devm_pinctrl_get_select_default(&dev->dev); > + if (IS_ERR(pinctrl)) { > + ret = PTR_ERR(pinctrl); > + goto unmap; > + } > + > uap->clk = clk_get(&dev->dev, NULL); > if (IS_ERR(uap->clk)) { > ret = PTR_ERR(uap->clk); > -- > 1.7.5.4 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel at lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel