r1030 - trunk/src/target/kernel/patches

laforge at sita.openmoko.org laforge at sita.openmoko.org
Sat Feb 17 13:56:11 CET 2007


Author: laforge
Date: 2007-02-17 13:56:11 +0100 (Sat, 17 Feb 2007)
New Revision: 1030

Modified:
   trunk/src/target/kernel/patches/gta01-core.patch
Log:
The board_size for hard SPI was being set
from the wrong value. Also remove & from
the pointers to the board_info.

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


Modified: trunk/src/target/kernel/patches/gta01-core.patch
===================================================================
--- trunk/src/target/kernel/patches/gta01-core.patch	2007-02-17 12:51:05 UTC (rev 1029)
+++ trunk/src/target/kernel/patches/gta01-core.patch	2007-02-17 12:56:11 UTC (rev 1030)
@@ -33,7 +33,7 @@
 Index: linux-2.6.20/arch/arm/mach-s3c2410/mach-gta01.c
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
-+++ linux-2.6.20/arch/arm/mach-s3c2410/mach-gta01.c	2007-02-17 13:48:14.000000000 +0100
++++ linux-2.6.20/arch/arm/mach-s3c2410/mach-gta01.c	2007-02-17 13:55:39.000000000 +0100
 @@ -0,0 +1,484 @@
 +/*
 + * linux/arch/arm/mach-s3c2410/mach-gta01.c
@@ -347,8 +347,8 @@
 +#ifdef SPI_HARD
 +static struct s3c2410_spi_info spi_cfg = {
 +	.pin_cs		= S3C2410_GPG3,
-+	.board_size	= sizeof(&gta01_spi_board_info),
-+	.board_info	= &gta01_spi_board_info,
++	.board_size	= ARRAY_SIZE(gta01_spi_board_info),
++	.board_info	= gta01_spi_board_info,
 +};
 +#else
 +static void spi_gpio_cs(struct s3c2410_spigpio_info *spi, int cs)
@@ -368,7 +368,7 @@
 +	.pin_mosi	= S3C2410_GPG6,
 +	.pin_miso	= S3C2410_GPG5,
 +	.board_size	= ARRAY_SIZE(gta01_spi_board_info),
-+	.board_info	= &gta01_spi_board_info,
++	.board_info	= gta01_spi_board_info,
 +	.chip_select	= &spi_gpio_cs,
 +};
 +





More information about the commitlog mailing list