diff options
| -rw-r--r-- | drivers/spi/spi_s3c24xx.c | 1 | ||||
| -rw-r--r-- | include/asm-arm/arch-s3c2410/spi.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi_s3c24xx.c b/drivers/spi/spi_s3c24xx.c index 0885cc357a37..1c643c9e1f15 100644 --- a/drivers/spi/spi_s3c24xx.c +++ b/drivers/spi/spi_s3c24xx.c | |||
| @@ -270,6 +270,7 @@ static int __init s3c24xx_spi_probe(struct platform_device *pdev) | |||
| 270 | /* setup the master state. */ | 270 | /* setup the master state. */ |
| 271 | 271 | ||
| 272 | master->num_chipselect = hw->pdata->num_cs; | 272 | master->num_chipselect = hw->pdata->num_cs; |
| 273 | master->bus_num = pdata->bus_num; | ||
| 273 | 274 | ||
| 274 | /* setup the state for the bitbang driver */ | 275 | /* setup the state for the bitbang driver */ |
| 275 | 276 | ||
diff --git a/include/asm-arm/arch-s3c2410/spi.h b/include/asm-arm/arch-s3c2410/spi.h index 352d33860b63..442169887d3b 100644 --- a/include/asm-arm/arch-s3c2410/spi.h +++ b/include/asm-arm/arch-s3c2410/spi.h | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | struct s3c2410_spi_info { | 16 | struct s3c2410_spi_info { |
| 17 | unsigned long pin_cs; /* simple gpio cs */ | 17 | unsigned long pin_cs; /* simple gpio cs */ |
| 18 | unsigned int num_cs; /* total chipselects */ | 18 | unsigned int num_cs; /* total chipselects */ |
| 19 | int bus_num; /* bus number to use. */ | ||
| 19 | 20 | ||
| 20 | void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol); | 21 | void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol); |
| 21 | }; | 22 | }; |
