aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-u300/core.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/arch/arm/mach-u300/core.c b/arch/arm/mach-u300/core.c
index f29565a10e2e..c092cf92e8ea 100644
--- a/arch/arm/mach-u300/core.c
+++ b/arch/arm/mach-u300/core.c
@@ -1618,22 +1618,18 @@ static struct pinctrl_map __initdata u300_pinmux_map[] = {
1618}; 1618};
1619 1619
1620struct u300_mux_hog { 1620struct u300_mux_hog {
1621 const char *name;
1622 struct device *dev; 1621 struct device *dev;
1623 struct pinctrl *p; 1622 struct pinctrl *p;
1624}; 1623};
1625 1624
1626static struct u300_mux_hog u300_mux_hogs[] = { 1625static struct u300_mux_hog u300_mux_hogs[] = {
1627 { 1626 {
1628 .name = "uart0",
1629 .dev = &uart0_device.dev, 1627 .dev = &uart0_device.dev,
1630 }, 1628 },
1631 { 1629 {
1632 .name = "spi0",
1633 .dev = &pl022_device.dev, 1630 .dev = &pl022_device.dev,
1634 }, 1631 },
1635 { 1632 {
1636 .name = "mmc0",
1637 .dev = &mmcsd_device.dev, 1633 .dev = &mmcsd_device.dev,
1638 }, 1634 },
1639}; 1635};
@@ -1646,16 +1642,10 @@ static int __init u300_pinctrl_fetch(void)
1646 struct pinctrl *p; 1642 struct pinctrl *p;
1647 int ret; 1643 int ret;
1648 1644
1649 p = pinctrl_get(u300_mux_hogs[i].dev, PINCTRL_STATE_DEFAULT); 1645 p = pinctrl_get_select_default(u300_mux_hogs[i].dev);
1650 if (IS_ERR(p)) { 1646 if (IS_ERR(p)) {
1651 pr_err("u300: could not get pinmux hog %s\n", 1647 pr_err("u300: could not get pinmux hog for dev %s\n",
1652 u300_mux_hogs[i].name); 1648 dev_name(u300_mux_hogs[i].dev));
1653 continue;
1654 }
1655 ret = pinctrl_enable(p);
1656 if (ret) {
1657 pr_err("u300: could enable pinmux hog %s\n",
1658 u300_mux_hogs[i].name);
1659 continue; 1649 continue;
1660 } 1650 }
1661 u300_mux_hogs[i].p = p; 1651 u300_mux_hogs[i].p = p;