ARM: S3C64XX: Use common macro to define resources on mach-crag6410.c
Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
This commit is contained in:
parent
178e712601
commit
8ebf148a68
|
@ -232,21 +232,10 @@ static struct platform_device crag6410_gpio_keydev = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct resource crag6410_dm9k_resource[] = {
|
static struct resource crag6410_dm9k_resource[] = {
|
||||||
[0] = {
|
[0] = DEFINE_RES_MEM(S3C64XX_PA_XM0CSN5, 2),
|
||||||
.start = S3C64XX_PA_XM0CSN5,
|
[1] = DEFINE_RES_MEM(S3C64XX_PA_XM0CSN5 + (1 << 8), 2),
|
||||||
.end = S3C64XX_PA_XM0CSN5 + 1,
|
[2] = DEFINE_RES_NAMED(S3C_EINT(17), 1, NULL, IORESOURCE_IRQ \
|
||||||
.flags = IORESOURCE_MEM,
|
| IORESOURCE_IRQ_HIGHLEVEL),
|
||||||
},
|
|
||||||
[1] = {
|
|
||||||
.start = S3C64XX_PA_XM0CSN5 + (1 << 8),
|
|
||||||
.end = S3C64XX_PA_XM0CSN5 + (1 << 8) + 1,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
[2] = {
|
|
||||||
.start = S3C_EINT(17),
|
|
||||||
.end = S3C_EINT(17),
|
|
||||||
.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct dm9000_plat_data mini6410_dm9k_pdata = {
|
static struct dm9000_plat_data mini6410_dm9k_pdata = {
|
||||||
|
@ -262,12 +251,7 @@ static struct platform_device crag6410_dm9k_device = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct resource crag6410_mmgpio_resource[] = {
|
static struct resource crag6410_mmgpio_resource[] = {
|
||||||
[0] = {
|
[0] = DEFINE_RES_MEM_NAMED(S3C64XX_PA_XM0CSN4, 1, "dat"),
|
||||||
.name = "dat",
|
|
||||||
.start = S3C64XX_PA_XM0CSN4 + 1,
|
|
||||||
.end = S3C64XX_PA_XM0CSN4 + 1,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device crag6410_mmgpio = {
|
static struct platform_device crag6410_mmgpio = {
|
||||||
|
|
Loading…
Reference in New Issue