S3C24XX SPI fixes
Subsystems (2)
cover S3C24XX SPI fixes
These two patches are fixes for the s3c24xx spi driver, the first one seems to have been lost in the noise, the second is a module alias fix for the driver.
The patches are suitable for inclusion as soon as possible.
Signature · 9 lines
Ben ([email protected], http://www.fluff.org/) 'a smiley only costs 4 bytes' ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
PATCH 1/2 SPI: spi_s3c24xx bus_num fixup due to missing part of previous patch
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.
[1] git commit 50f426b55d919dd017af35bb6a08753d1f262920
include/asm-arm/arch-s3c2410/spi.h +1 -0
@@ -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); };
drivers/spi/spi_s3c24xx.c +1 -0
@@ -270,6 +270,7 @@ static int __init s3c24xx_spi_probe(stru/* setup the master state. */ master->num_chipselect = hw->pdata->num_cs; + master->bus_num = pdata->bus_num;/* setup the state for the bitbang driver */
Signature · 9 lines
Ben ([email protected], http://www.fluff.org/) 'a smiley only costs 4 bytes' ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
PATCH 2/2 SPI: Move MOD_ALIAS in spi_s3c24xx driver.
In reply to Ben DooksUnite the MODULE_ALIAS() declaration with the rest of the MODULE_* definitions.
drivers/spi/spi_s3c24xx.c +1 -1
@@ -424,7 +424,6 @@ static int s3c24xx_spi_resume(struct pla#define s3c24xx_spi_resume NULL#endif -MODULE_ALIAS ("platform:s3c2410-spi" );static struct platform_driver s3c24xx_spidrv = { .remove =__exit_p (s3c24xx_spi_remove), .suspend = s3c24xx_spi_suspend,
@@ -451,3 +450,4 @@ module_exit(s3c24xx_spi_exit);MODULE_DESCRIPTION ("S3C24XX SPI Driver" );MODULE_AUTHOR ("Ben Dooks, <ben-Y5A6D6n0/[email protected]>" );MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("platform:s3c2410-spi" );
Signature · 9 lines
Ben ([email protected], http://www.fluff.org/) 'a smiley only costs 4 bytes' ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php