[PATCH] jbt: no need for .bus to be initialised

Ben Dooks ben-linux at fluff.org
Sat Feb 17 01:18:45 CET 2007


The .bus field of the spi driver is initialised
when you register the driver with the spi system

Signed-off-by: Ben Dooks <ben-linux at fluff.org>

diff -urpN -X linux-2.6.20-dev2/Documentation/dontdiff linux-2.6.20-dev2/drivers/spi/jbt6k74.c linux-2.6.20-dev3/drivers/spi/jbt6k74.c
--- linux-2.6.20-dev2/drivers/spi/jbt6k74.c	2007-02-16 12:28:27.000000000 +0000
+++ linux-2.6.20-dev3/drivers/spi/jbt6k74.c	2007-02-17 00:16:51.000000000 +0000
@@ -504,7 +504,6 @@ static int jbt_resume(struct spi_device 
 static struct spi_driver jbt6k74_driver = {
 	.driver = {
 		.name	= "jbt6k74",
-		.bus	= &spi_bus_type,
 		.owner	= THIS_MODULE,
 	},
 




More information about the openmoko-kernel mailing list