mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
spi_s3c24xx: really assign busnum
The original "Pass the bus number we expect the S3C24XX SPI driver to attach to via the platform data." [1] patch was mis-sent, and missed two important parts of the diff, which was to actually set the bus_num field and add the relevant field to the platform data. The previous commit50f426b55dpromised to add a bus_num field, but failed to include the two hunks that added this field to include/asm-arm/arch-s3c2410/spi.h and then pass it to the spi core when creating the new master field in drivers/spi/spi_s3c24xx.c. [1] git commit50f426b55dSigned-off-by: Ben Dooks <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9a7867e1b3
commit
cb1d0a7a5d
2 changed files with 2 additions and 0 deletions
|
|
@ -270,6 +270,7 @@ static int __init s3c24xx_spi_probe(struct platform_device *pdev)
|
|||
/* setup the master state. */
|
||||
|
||||
master->num_chipselect = hw->pdata->num_cs;
|
||||
master->bus_num = pdata->bus_num;
|
||||
|
||||
/* setup the state for the bitbang driver */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue