aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-u300
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-12-14 09:17:02 -0500
committerOlof Johansson <olof@lixom.net>2012-12-17 13:04:29 -0500
commit761dc26d439e6195462a0257d6cf92c251d50198 (patch)
treeef2b0a8fbf9dab7c703f20834e7fa60c218b9058 /arch/arm/mach-u300
parent0f600f40d752fe1f47aca29b8b95140283beda6b (diff)
ARM: u300: delete custom pin hog code
With recent changes in the kernel, the MMCI and PL011 UART drivers will autonomously request their pins to be muxed in, so this machine-specific pin hogging code is just interfering with the proper mechanism and causing regressions in the v3.8 kernel. Delete it and the problems go away. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-u300')
-rw-r--r--arch/arm/mach-u300/core.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/arch/arm/mach-u300/core.c b/arch/arm/mach-u300/core.c
index 12f3994c43db..0374b9863e9b 100644
--- a/arch/arm/mach-u300/core.c
+++ b/arch/arm/mach-u300/core.c
@@ -27,7 +27,6 @@
27#include <linux/mtd/nand.h> 27#include <linux/mtd/nand.h>
28#include <linux/mtd/fsmc.h> 28#include <linux/mtd/fsmc.h>
29#include <linux/pinctrl/machine.h> 29#include <linux/pinctrl/machine.h>
30#include <linux/pinctrl/consumer.h>
31#include <linux/pinctrl/pinconf-generic.h> 30#include <linux/pinctrl/pinconf-generic.h>
32#include <linux/dma-mapping.h> 31#include <linux/dma-mapping.h>
33#include <linux/platform_data/clk-u300.h> 32#include <linux/platform_data/clk-u300.h>
@@ -1543,39 +1542,6 @@ static struct pinctrl_map __initdata u300_pinmux_map[] = {
1543 pin_highz_conf), 1542 pin_highz_conf),
1544}; 1543};
1545 1544
1546struct u300_mux_hog {
1547 struct device *dev;
1548 struct pinctrl *p;
1549};
1550
1551static struct u300_mux_hog u300_mux_hogs[] = {
1552 {
1553 .dev = &uart0_device.dev,
1554 },
1555 {
1556 .dev = &mmcsd_device.dev,
1557 },
1558};
1559
1560static int __init u300_pinctrl_fetch(void)
1561{
1562 int i;
1563
1564 for (i = 0; i < ARRAY_SIZE(u300_mux_hogs); i++) {
1565 struct pinctrl *p;
1566
1567 p = pinctrl_get_select_default(u300_mux_hogs[i].dev);
1568 if (IS_ERR(p)) {
1569 pr_err("u300: could not get pinmux hog for dev %s\n",
1570 dev_name(u300_mux_hogs[i].dev));
1571 continue;
1572 }
1573 u300_mux_hogs[i].p = p;
1574 }
1575 return 0;
1576}
1577subsys_initcall(u300_pinctrl_fetch);
1578
1579/* 1545/*
1580 * Notice that AMBA devices are initialized before platform devices. 1546 * Notice that AMBA devices are initialized before platform devices.
1581 * 1547 *