Skip to content

Commit

Permalink
spi_s3c24xx: really assign busnum
Browse files Browse the repository at this point in the history
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 commit 50f426b promised 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 commit 50f426b

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Ben Dooks authored and Linus Torvalds committed Jul 28, 2008
1 parent 9a7867e commit cb1d0a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/spi/spi_s3c24xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
1 change: 1 addition & 0 deletions include/asm-arm/arch-s3c2410/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
struct s3c2410_spi_info {
unsigned long pin_cs; /* simple gpio cs */
unsigned int num_cs; /* total chipselects */
int bus_num; /* bus number to use. */

void (*set_cs)(struct s3c2410_spi_info *spi, int cs, int pol);
};
Expand Down

0 comments on commit cb1d0a7

Please sign in to comment.