From: shawn.guo@linaro.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH RESEND 1/5] tty: serial: imx: adopt pinctrl support
Date: Mon, 7 May 2012 08:53:56 +0800 [thread overview]
Message-ID: <1336352040-28447-2-git-send-email-shawn.guo@linaro.org> (raw)
In-Reply-To: <1336352040-28447-1-git-send-email-shawn.guo@linaro.org>
Cc: linux-serial at vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
drivers/tty/serial/imx.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index e7fecee..ec20673 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -47,6 +47,7 @@
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/of_device.h>
+#include <linux/pinctrl/consumer.h>
#include <asm/io.h>
#include <asm/irq.h>
@@ -1464,6 +1465,7 @@ static int serial_imx_probe(struct platform_device *pdev)
void __iomem *base;
int ret = 0;
struct resource *res;
+ struct pinctrl *pinctrl;
sport = kzalloc(sizeof(*sport), GFP_KERNEL);
if (!sport)
@@ -1503,6 +1505,12 @@ static int serial_imx_probe(struct platform_device *pdev)
sport->timer.function = imx_timeout;
sport->timer.data = (unsigned long)sport;
+ pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
+ if (IS_ERR(pinctrl)) {
+ ret = PTR_ERR(pinctrl);
+ goto unmap;
+ }
+
sport->clk = clk_get(&pdev->dev, "uart");
if (IS_ERR(sport->clk)) {
ret = PTR_ERR(sport->clk);
--
1.7.5.4
next prev parent reply other threads:[~2012-05-07 0:53 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 0:53 [PATCH RESEND 0/5] Adopt pinctrl support for a few outstanding imx drivers Shawn Guo
2012-05-07 0:53 ` Shawn Guo [this message]
2012-05-08 3:43 ` [PATCH RESEND 1/5] tty: serial: imx: adopt pinctrl support Dong Aisheng
2012-05-07 0:53 ` [PATCH RESEND 2/5] net: fec: " Shawn Guo
2012-05-08 3:44 ` Dong Aisheng
2012-05-11 22:31 ` David Miller
2012-05-07 0:53 ` [PATCH RESEND 3/5] can: flexcan: " Shawn Guo
2012-05-07 8:06 ` Marc Kleine-Budde
2012-05-07 8:17 ` Shawn Guo
2012-05-07 8:29 ` Marc Kleine-Budde
2012-05-08 3:44 ` Dong Aisheng
2012-07-01 22:49 ` Marc Kleine-Budde
2012-07-02 1:52 ` Shawn Guo
2012-07-03 10:00 ` Marc Kleine-Budde
2012-05-07 0:53 ` [PATCH RESEND 4/5] i2c: imx: " Shawn Guo
2012-05-08 3:45 ` Dong Aisheng
2012-05-07 0:54 ` [PATCH RESEND 5/5] spi/imx: " Shawn Guo
2012-05-08 3:45 ` Dong Aisheng
2012-05-20 4:40 ` Grant Likely
2012-05-20 5:19 ` Shawn Guo
2012-05-07 6:50 ` [PATCH RESEND 0/5] Adopt pinctrl support for a few outstanding imx drivers Dong Aisheng
2012-05-07 7:34 ` Shawn Guo
2012-05-07 7:53 ` Dong Aisheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1336352040-28447-2-git-send-email-shawn.guo@linaro.org \
--to=shawn.guo@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).