Commit 2b7da084 authored by Russell King's avatar Russell King

ARM: riscpc: use DEFINE_RES_xxx()

Use DEFINE_RES_xxx() to define device resources.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 530c2eaa
...@@ -98,15 +98,9 @@ static void __init rpc_map_io(void) ...@@ -98,15 +98,9 @@ static void __init rpc_map_io(void)
} }
static struct resource acornfb_resources[] = { static struct resource acornfb_resources[] = {
{ /* VIDC */ /* VIDC */
.start = 0x03400000, DEFINE_RES_MEM(0x03400000, 0x00200000),
.end = 0x035fffff, DEFINE_RES_IRQ(IRQ_VSYNCPULSE),
.flags = IORESOURCE_MEM,
}, {
.start = IRQ_VSYNCPULSE,
.end = IRQ_VSYNCPULSE,
.flags = IORESOURCE_IRQ,
},
}; };
static struct platform_device acornfb_device = { static struct platform_device acornfb_device = {
...@@ -120,11 +114,7 @@ static struct platform_device acornfb_device = { ...@@ -120,11 +114,7 @@ static struct platform_device acornfb_device = {
}; };
static struct resource iomd_resources[] = { static struct resource iomd_resources[] = {
{ DEFINE_RES_MEM(0x03200000, 0x10000),
.start = 0x03200000,
.end = 0x0320ffff,
.flags = IORESOURCE_MEM,
},
}; };
static struct platform_device iomd_device = { static struct platform_device iomd_device = {
...@@ -174,21 +164,9 @@ static struct pata_platform_info pata_platform_data = { ...@@ -174,21 +164,9 @@ static struct pata_platform_info pata_platform_data = {
}; };
static struct resource pata_resources[] = { static struct resource pata_resources[] = {
[0] = { DEFINE_RES_MEM(0x030107c0, 0x20),
.start = 0x030107c0, DEFINE_RES_MEM(0x03010fd8, 0x04),
.end = 0x030107df, DEFINE_RES_IRQ(IRQ_HARDDISK),
.flags = IORESOURCE_MEM,
},
[1] = {
.start = 0x03010fd8,
.end = 0x03010fdb,
.flags = IORESOURCE_MEM,
},
[2] = {
.start = IRQ_HARDDISK,
.end = IRQ_HARDDISK,
.flags = IORESOURCE_IRQ,
},
}; };
static struct platform_device pata_device = { static struct platform_device pata_device = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment