diff options
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc836x_mds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc836x_mds.c b/arch/powerpc/platforms/83xx/mpc836x_mds.c index 9d46e5bdd101..c0a09c34956b 100644 --- a/arch/powerpc/platforms/83xx/mpc836x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc836x_mds.c | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | #include <linux/stddef.h> | 19 | #include <linux/stddef.h> |
20 | #include <linux/kernel.h> | 20 | #include <linux/kernel.h> |
21 | #include <linux/compiler.h> | ||
21 | #include <linux/init.h> | 22 | #include <linux/init.h> |
22 | #include <linux/errno.h> | 23 | #include <linux/errno.h> |
23 | #include <linux/reboot.h> | 24 | #include <linux/reboot.h> |
@@ -55,8 +56,6 @@ | |||
55 | #define DBG(fmt...) | 56 | #define DBG(fmt...) |
56 | #endif | 57 | #endif |
57 | 58 | ||
58 | static u8 *bcsr_regs = NULL; | ||
59 | |||
60 | /* ************************************************************************ | 59 | /* ************************************************************************ |
61 | * | 60 | * |
62 | * Setup the architecture | 61 | * Setup the architecture |
@@ -65,13 +64,14 @@ static u8 *bcsr_regs = NULL; | |||
65 | static void __init mpc836x_mds_setup_arch(void) | 64 | static void __init mpc836x_mds_setup_arch(void) |
66 | { | 65 | { |
67 | struct device_node *np; | 66 | struct device_node *np; |
67 | u8 __iomem *bcsr_regs = NULL; | ||
68 | 68 | ||
69 | if (ppc_md.progress) | 69 | if (ppc_md.progress) |
70 | ppc_md.progress("mpc836x_mds_setup_arch()", 0); | 70 | ppc_md.progress("mpc836x_mds_setup_arch()", 0); |
71 | 71 | ||
72 | /* Map BCSR area */ | 72 | /* Map BCSR area */ |
73 | np = of_find_node_by_name(NULL, "bcsr"); | 73 | np = of_find_node_by_name(NULL, "bcsr"); |
74 | if (np != 0) { | 74 | if (np) { |
75 | struct resource res; | 75 | struct resource res; |
76 | 76 | ||
77 | of_address_to_resource(np, 0, &res); | 77 | of_address_to_resource(np, 0, &res); |