diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-05-14 09:30:52 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-05-14 09:30:52 -0400 |
commit | 4f5a9fd341e8ffd825ecf56155df6fe6c3d732b1 (patch) | |
tree | ac23c7b80154a476db3882d92f079c50c919e2fa /drivers/tty/serial/imx.c | |
parent | c818f97bc3266f0fbf619f2348d951272f8ac335 (diff) | |
parent | a0f5e3631b07cabf624e7d818df76d47d9d21017 (diff) |
Merge branch 'imx/pinctrl' into imx/clock
Conflicts:
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/net/ethernet/freescale/fec.c
drivers/spi/spi-imx.c
drivers/tty/serial/imx.c
This resolves dependencies between the pinctrl and clock changes
in imx.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/tty/serial/imx.c')
-rw-r--r-- | 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 267ec6da5af2..4ef747307ecb 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c | |||
@@ -47,6 +47,7 @@ | |||
47 | #include <linux/slab.h> | 47 | #include <linux/slab.h> |
48 | #include <linux/of.h> | 48 | #include <linux/of.h> |
49 | #include <linux/of_device.h> | 49 | #include <linux/of_device.h> |
50 | #include <linux/pinctrl/consumer.h> | ||
50 | 51 | ||
51 | #include <asm/io.h> | 52 | #include <asm/io.h> |
52 | #include <asm/irq.h> | 53 | #include <asm/irq.h> |
@@ -1465,6 +1466,7 @@ static int serial_imx_probe(struct platform_device *pdev) | |||
1465 | void __iomem *base; | 1466 | void __iomem *base; |
1466 | int ret = 0; | 1467 | int ret = 0; |
1467 | struct resource *res; | 1468 | struct resource *res; |
1469 | struct pinctrl *pinctrl; | ||
1468 | 1470 | ||
1469 | sport = kzalloc(sizeof(*sport), GFP_KERNEL); | 1471 | sport = kzalloc(sizeof(*sport), GFP_KERNEL); |
1470 | if (!sport) | 1472 | if (!sport) |
@@ -1504,6 +1506,12 @@ static int serial_imx_probe(struct platform_device *pdev) | |||
1504 | sport->timer.function = imx_timeout; | 1506 | sport->timer.function = imx_timeout; |
1505 | sport->timer.data = (unsigned long)sport; | 1507 | sport->timer.data = (unsigned long)sport; |
1506 | 1508 | ||
1509 | pinctrl = devm_pinctrl_get_select_default(&pdev->dev); | ||
1510 | if (IS_ERR(pinctrl)) { | ||
1511 | ret = PTR_ERR(pinctrl); | ||
1512 | goto unmap; | ||
1513 | } | ||
1514 | |||
1507 | sport->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); | 1515 | sport->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); |
1508 | if (IS_ERR(sport->clk_ipg)) { | 1516 | if (IS_ERR(sport->clk_ipg)) { |
1509 | ret = PTR_ERR(sport->clk_ipg); | 1517 | ret = PTR_ERR(sport->clk_ipg); |