summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx1/scb9328.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-06-23 12:14:39 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-08-07 12:10:55 +0200
commit9b0e6db0da1ea433f38b8d952108746f3fc67304 (patch)
tree53f29936d7e40eabc75f0da50f9125157fc7bafd /arch/arm/mach-mx1/scb9328.c
parentmx3: Codingstyle: Let the compiler count arrays (diff)
downloadlinux-9b0e6db0da1ea433f38b8d952108746f3fc67304.tar.xz
linux-9b0e6db0da1ea433f38b8d952108746f3fc67304.zip
mx1: Codingstyle: Let the compiler count arrays
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx1/scb9328.c')
-rw-r--r--arch/arm/mach-mx1/scb9328.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/arch/arm/mach-mx1/scb9328.c b/arch/arm/mach-mx1/scb9328.c
index 125d495e9c73..325d98df6053 100644
--- a/arch/arm/mach-mx1/scb9328.c
+++ b/arch/arm/mach-mx1/scb9328.c
@@ -68,22 +68,20 @@ static struct dm9000_plat_data dm9000_platdata = {
* to gain access to address latch registers and the data path.
*/
static struct resource dm9000x_resources[] = {
- [0] = {
+ {
.name = "address area",
.start = IMX_CS5_PHYS,
.end = IMX_CS5_PHYS + 1,
- .flags = IORESOURCE_MEM /* address access */
- },
- [1] = {
+ .flags = IORESOURCE_MEM, /* address access */
+ }, {
.name = "data area",
.start = IMX_CS5_PHYS + 4,
.end = IMX_CS5_PHYS + 5,
- .flags = IORESOURCE_MEM /* data access */
- },
- [2] = {
+ .flags = IORESOURCE_MEM, /* data access */
+ }, {
.start = IRQ_GPIOC(3),
.end = IRQ_GPIOC(3),
- .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL
+ .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
},
};