[PATCH] mach-gta01: tidy iodesc initialisers

Ben Dooks ben-linux at fluff.org
Sat Feb 17 01:08:09 CET 2007


Tidy the initialisers in mach-gta01.c and use
named initialisers for the struct

Signed-off-by: Ben Dooks <ben-linux at fluff.org>

diff -urpN -X linux-2.6.20-dev1/Documentation/dontdiff linux-2.6.20-dev1/arch/arm/mach-s3c2410/mach-gta01.c linux-2.6.20-dev2/arch/arm/mach-s3c2410/mach-gta01.c
--- linux-2.6.20-dev1/arch/arm/mach-s3c2410/mach-gta01.c	2007-02-16 12:28:27.000000000 +0000
+++ linux-2.6.20-dev2/arch/arm/mach-s3c2410/mach-gta01.c	2007-02-17 00:05:59.000000000 +0000
@@ -72,7 +72,12 @@
 #include "pm.h"
 
 static struct map_desc gta01_iodesc[] __initdata = {
-	{ 0xe0000000, __phys_to_pfn(S3C2410_CS3+0x01000000), SZ_1M, MT_DEVICE }
+	{
+		.virtual	= 0xe0000000,
+		.pfn		= __phys_to_pfn(S3C2410_CS3+0x01000000),
+		.length		= SZ_1M,
+		.type		= MT_DEVICE
+	},
 };
 
 #define UCON S3C2410_UCON_DEFAULT




More information about the openmoko-kernel mailing list