diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/rb532/devices.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c index 1a0209eca789..4a5f05b662ae 100644 --- a/arch/mips/rb532/devices.c +++ b/arch/mips/rb532/devices.c | |||
@@ -63,13 +63,6 @@ unsigned char get_latch_u5(void) | |||
63 | } | 63 | } |
64 | EXPORT_SYMBOL(get_latch_u5); | 64 | EXPORT_SYMBOL(get_latch_u5); |
65 | 65 | ||
66 | static struct resource rb532_dev3_ctl_res[] = { | ||
67 | { | ||
68 | .name = "dev3_ctl", | ||
69 | .flags = IORESOURCE_MEM, | ||
70 | } | ||
71 | }; | ||
72 | |||
73 | static struct resource korina_dev0_res[] = { | 66 | static struct resource korina_dev0_res[] = { |
74 | { | 67 | { |
75 | .name = "korina_regs", | 68 | .name = "korina_regs", |
@@ -342,11 +335,8 @@ static int __init plat_setup_devices(void) | |||
342 | nand_slot0_res[0].start = readl(IDT434_REG_BASE + DEV2BASE); | 335 | nand_slot0_res[0].start = readl(IDT434_REG_BASE + DEV2BASE); |
343 | nand_slot0_res[0].end = nand_slot0_res[0].start + 0x1000; | 336 | nand_slot0_res[0].end = nand_slot0_res[0].start + 0x1000; |
344 | 337 | ||
345 | /* Read the third (multi purpose) resources from the DC */ | 338 | /* Read and map device controller 3 */ |
346 | rb532_dev3_ctl_res[0].start = readl(IDT434_REG_BASE + DEV3BASE); | 339 | dev3.base = ioremap_nocache(readl(IDT434_REG_BASE + DEV3BASE), 1); |
347 | rb532_dev3_ctl_res[0].end = rb532_dev3_ctl_res[0].start + 0x1000; | ||
348 | |||
349 | dev3.base = ioremap_nocache(rb532_dev3_ctl_res[0].start, 0x1000); | ||
350 | 340 | ||
351 | if (!dev3.base) { | 341 | if (!dev3.base) { |
352 | printk(KERN_ERR "rb532: cannot remap device controller 3\n"); | 342 | printk(KERN_ERR "rb532: cannot remap device controller 3\n"); |