[PATCH] mach-gta01: fix spi initialisation parameters
Ben Dooks
ben-linux at fluff.org
Sat Feb 17 01:52:45 CET 2007
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>
--- linux-2.6.20-dev5/arch/arm/mach-s3c2410/mach-gta01.c 2007-02-17 00:40:44.000000000 +0000
+++ linux-2.6.20-dev6/arch/arm/mach-s3c2410/mach-gta01.c 2007-02-17 00:49:54.000000000 +0000
@@ -322,7 +322,7 @@ static struct spi_board_info gta01_spi_b
#ifdef SPI_HARD
static struct s3c2410_spi_info spi_cfg = {
.pin_cs = S3C2410_GPG3,
- .board_size = sizeof(>a01_spi_board_info),
+ .board_size = ARRAY_SIZE(gta01_spi_board_info),
.board_info = >a01_spi_board_info,
};
#else
@@ -343,7 +343,7 @@ static struct s3c2410_spigpio_info spi_g
.pin_mosi = S3C2410_GPG6,
.pin_miso = S3C2410_GPG5,
.board_size = ARRAY_SIZE(gta01_spi_board_info),
- .board_info = >a01_spi_board_info,
+ .board_info = gta01_spi_board_info,
.chip_select = &spi_gpio_cs,
};
More information about the openmoko-kernel
mailing list