diff options
Diffstat (limited to 'arch/powerpc/platforms/44x/ebony.c')
-rw-r--r-- | arch/powerpc/platforms/44x/ebony.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/44x/ebony.c b/arch/powerpc/platforms/44x/ebony.c index 6cd3476767cc..1a8d467bff85 100644 --- a/arch/powerpc/platforms/44x/ebony.c +++ b/arch/powerpc/platforms/44x/ebony.c | |||
@@ -18,16 +18,18 @@ | |||
18 | 18 | ||
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/of_platform.h> | 20 | #include <linux/of_platform.h> |
21 | #include <linux/rtc.h> | ||
21 | 22 | ||
22 | #include <asm/machdep.h> | 23 | #include <asm/machdep.h> |
23 | #include <asm/prom.h> | 24 | #include <asm/prom.h> |
24 | #include <asm/udbg.h> | 25 | #include <asm/udbg.h> |
25 | #include <asm/time.h> | 26 | #include <asm/time.h> |
26 | #include <asm/uic.h> | 27 | #include <asm/uic.h> |
28 | #include <asm/pci-bridge.h> | ||
27 | 29 | ||
28 | #include "44x.h" | 30 | #include "44x.h" |
29 | 31 | ||
30 | static struct of_device_id ebony_of_bus[] = { | 32 | static __initdata struct of_device_id ebony_of_bus[] = { |
31 | { .compatible = "ibm,plb4", }, | 33 | { .compatible = "ibm,plb4", }, |
32 | { .compatible = "ibm,opb", }, | 34 | { .compatible = "ibm,opb", }, |
33 | { .compatible = "ibm,ebc", }, | 35 | { .compatible = "ibm,ebc", }, |
@@ -36,14 +38,12 @@ static struct of_device_id ebony_of_bus[] = { | |||
36 | 38 | ||
37 | static int __init ebony_device_probe(void) | 39 | static int __init ebony_device_probe(void) |
38 | { | 40 | { |
39 | if (!machine_is(ebony)) | ||
40 | return 0; | ||
41 | |||
42 | of_platform_bus_probe(NULL, ebony_of_bus, NULL); | 41 | of_platform_bus_probe(NULL, ebony_of_bus, NULL); |
42 | of_instantiate_rtc(); | ||
43 | 43 | ||
44 | return 0; | 44 | return 0; |
45 | } | 45 | } |
46 | device_initcall(ebony_device_probe); | 46 | machine_device_initcall(ebony, ebony_device_probe); |
47 | 47 | ||
48 | /* | 48 | /* |
49 | * Called very early, MMU is off, device-tree isn't unflattened | 49 | * Called very early, MMU is off, device-tree isn't unflattened |
@@ -55,6 +55,8 @@ static int __init ebony_probe(void) | |||
55 | if (!of_flat_dt_is_compatible(root, "ibm,ebony")) | 55 | if (!of_flat_dt_is_compatible(root, "ibm,ebony")) |
56 | return 0; | 56 | return 0; |
57 | 57 | ||
58 | ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC; | ||
59 | |||
58 | return 1; | 60 | return 1; |
59 | } | 61 | } |
60 | 62 | ||