diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2008-10-23 19:05:56 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-10-28 10:45:57 -0400 |
commit | 22e181ba7f09197dd6f35a48013cb86289644eb6 (patch) | |
tree | 89105a1c1f6ad755b62da38208972e8928fa8efe /arch/powerpc/platforms/embedded6xx | |
parent | 0173a3265b228da319ceb9c1ec6a5682fd1b2d92 (diff) |
powerpc: fix i2c on PPC linkstation / kurobox machines
The i2c bus defn is broken on linkstation / kurobox machines since at
least 2.6.27. Fix it. Also remove CONFIG_SERIAL_OF_PLATFORM, which, if
enabled, breaks the serial console after the
"console handover: boot [udbg0] -> real [ttyS1]" message.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/embedded6xx')
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/linkstation.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/linkstation.c b/arch/powerpc/platforms/embedded6xx/linkstation.c index eb5d74e26fe9..2ca7be65c2d2 100644 --- a/arch/powerpc/platforms/embedded6xx/linkstation.c +++ b/arch/powerpc/platforms/embedded6xx/linkstation.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/initrd.h> | 14 | #include <linux/initrd.h> |
15 | #include <linux/mtd/physmap.h> | 15 | #include <linux/mtd/physmap.h> |
16 | #include <linux/of_platform.h> | ||
16 | 17 | ||
17 | #include <asm/time.h> | 18 | #include <asm/time.h> |
18 | #include <asm/prom.h> | 19 | #include <asm/prom.h> |
@@ -54,6 +55,19 @@ static struct mtd_partition linkstation_physmap_partitions[] = { | |||
54 | }, | 55 | }, |
55 | }; | 56 | }; |
56 | 57 | ||
58 | static __initdata struct of_device_id of_bus_ids[] = { | ||
59 | { .type = "soc", }, | ||
60 | { .compatible = "simple-bus", }, | ||
61 | {}, | ||
62 | }; | ||
63 | |||
64 | static int __init declare_of_platform_devices(void) | ||
65 | { | ||
66 | of_platform_bus_probe(NULL, of_bus_ids, NULL); | ||
67 | return 0; | ||
68 | } | ||
69 | machine_device_initcall(linkstation, declare_of_platform_devices); | ||
70 | |||
57 | static int __init linkstation_add_bridge(struct device_node *dev) | 71 | static int __init linkstation_add_bridge(struct device_node *dev) |
58 | { | 72 | { |
59 | #ifdef CONFIG_PCI | 73 | #ifdef CONFIG_PCI |