diff options
Diffstat (limited to 'arch/arc/plat-tb10x/tb10x.c')
-rw-r--r-- | arch/arc/plat-tb10x/tb10x.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/arch/arc/plat-tb10x/tb10x.c b/arch/arc/plat-tb10x/tb10x.c index d3567691c7e1..06cb30929460 100644 --- a/arch/arc/plat-tb10x/tb10x.c +++ b/arch/arc/plat-tb10x/tb10x.c | |||
@@ -34,31 +34,6 @@ static void __init tb10x_platform_init(void) | |||
34 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 34 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
35 | } | 35 | } |
36 | 36 | ||
37 | static void __init tb10x_platform_late_init(void) | ||
38 | { | ||
39 | struct device_node *dn; | ||
40 | |||
41 | /* | ||
42 | * Pinctrl documentation recommends setting up the iomux here for | ||
43 | * all modules which don't require control over the pins themselves. | ||
44 | * Modules which need this kind of assistance are compatible with | ||
45 | * "abilis,simple-pinctrl", i.e. we can easily iterate over them. | ||
46 | * TODO: Does this recommended method work cleanly with pins required | ||
47 | * by modules? | ||
48 | */ | ||
49 | for_each_compatible_node(dn, NULL, "abilis,simple-pinctrl") { | ||
50 | struct platform_device *pd = of_find_device_by_node(dn); | ||
51 | struct pinctrl *pctl; | ||
52 | |||
53 | pctl = pinctrl_get_select(&pd->dev, "abilis,simple-default"); | ||
54 | if (IS_ERR(pctl)) { | ||
55 | int ret = PTR_ERR(pctl); | ||
56 | dev_err(&pd->dev, "Could not set up pinctrl: %d\n", | ||
57 | ret); | ||
58 | } | ||
59 | } | ||
60 | } | ||
61 | |||
62 | static const char *tb10x_compat[] __initdata = { | 37 | static const char *tb10x_compat[] __initdata = { |
63 | "abilis,arc-tb10x", | 38 | "abilis,arc-tb10x", |
64 | NULL, | 39 | NULL, |
@@ -67,5 +42,4 @@ static const char *tb10x_compat[] __initdata = { | |||
67 | MACHINE_START(TB10x, "tb10x") | 42 | MACHINE_START(TB10x, "tb10x") |
68 | .dt_compat = tb10x_compat, | 43 | .dt_compat = tb10x_compat, |
69 | .init_machine = tb10x_platform_init, | 44 | .init_machine = tb10x_platform_init, |
70 | .init_late = tb10x_platform_late_init, | ||
71 | MACHINE_END | 45 | MACHINE_END |