[PATCH] mach-gta01: update spi registration

Ben Dooks ben-linux at fluff.org
Sat Feb 17 02:06:45 CET 2007


There should be no need to call spi_register_board
for either of the s3c24xx drivers as they both
register the devices specified in their platform
data.

Also change SPI CS pin to high on init

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

--- linux-2.6.20-dev6a/arch/arm/mach-s3c2410/mach-gta01.c	2007-02-17 01:04:57.000000000 +0000
+++ linux-2.6.20-dev7/arch/arm/mach-s3c2410/mach-gta01.c	2007-02-17 01:03:14.000000000 +0000
@@ -445,9 +445,8 @@ static void __init gta01_machine_init(vo
 #else
 	/* SPI chip select is gpio output */
 	s3c2410_gpio_cfgpin(S3C2410_GPG3, S3C2410_GPIO_OUTPUT);
+	s3c2410_gpio_setpin(S3C2410_GPG3, 1);
 
-	spi_register_board_info(gta01_spi_board_info,
-				ARRAY_SIZE(gta01_spi_board_info));
 	platform_device_register(&s3c_device_spi_lcm);
 #endif
 	platform_device_register(&gta01_bl_dev);




More information about the openmoko-kernel mailing list