staging:iio: Remove redundant spi driver bus initialization

In ancient times it was necessary to manually initialize the bus field of an
spi_driver to spi_bus_type. These days this is done in spi_register_driver() so
we can drop the manual assignment.

The patch was generated using the following coccinelle semantic patch:
// <smpl>
@@
identifier _driver;
@@
 struct spi_driver _driver = {
 	.driver = {
-		.bus = &spi_bus_type,
 	},
 };
// </smpl>

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Lars-Peter Clausen 2011-12-05 16:53:05 +01:00 committed by Greg Kroah-Hartman
parent c03f2c5368
commit 94386ab0b4
13 changed files with 0 additions and 13 deletions

View file

@ -975,7 +975,6 @@ MODULE_DEVICE_TABLE(spi, ad7280_id);
static struct spi_driver ad7280_driver = {
.driver = {
.name = "ad7280",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = ad7280_probe,

View file

@ -276,7 +276,6 @@ MODULE_DEVICE_TABLE(spi, ad7298_id);
static struct spi_driver ad7298_driver = {
.driver = {
.name = "ad7298",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = ad7298_probe,

View file

@ -242,7 +242,6 @@ MODULE_DEVICE_TABLE(spi, ad7476_id);
static struct spi_driver ad7476_driver = {
.driver = {
.name = "ad7476",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = ad7476_probe,

View file

@ -102,7 +102,6 @@ MODULE_DEVICE_TABLE(spi, ad7606_id);
static struct spi_driver ad7606_driver = {
.driver = {
.name = "ad7606",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
.pm = AD7606_SPI_PM_OPS,
},

View file

@ -277,7 +277,6 @@ MODULE_DEVICE_TABLE(spi, ad7780_id);
static struct spi_driver ad7780_driver = {
.driver = {
.name = "ad7780",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = ad7780_probe,

View file

@ -1041,7 +1041,6 @@ MODULE_DEVICE_TABLE(spi, ad7793_id);
static struct spi_driver ad7793_driver = {
.driver = {
.name = "ad7793",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = ad7793_probe,

View file

@ -460,7 +460,6 @@ MODULE_DEVICE_TABLE(spi, ad7816_id);
static struct spi_driver ad7816_driver = {
.driver = {
.name = "ad7816",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = ad7816_probe,

View file

@ -251,7 +251,6 @@ MODULE_DEVICE_TABLE(spi, ad7887_id);
static struct spi_driver ad7887_driver = {
.driver = {
.name = "ad7887",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = ad7887_probe,

View file

@ -877,7 +877,6 @@ MODULE_DEVICE_TABLE(spi, adt7310_id);
static struct spi_driver adt7310_driver = {
.driver = {
.name = "adt7310",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = adt7310_probe,

View file

@ -151,7 +151,6 @@ static int adt7316_spi_resume(struct spi_device *spi_dev)
static struct spi_driver adt7316_driver = {
.driver = {
.name = "adt7316",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = adt7316_spi_probe,

View file

@ -440,7 +440,6 @@ MODULE_DEVICE_TABLE(spi, ad5446_id);
static struct spi_driver ad5446_driver = {
.driver = {
.name = "ad5446",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = ad5446_probe,

View file

@ -349,7 +349,6 @@ MODULE_DEVICE_TABLE(spi, ad9832_id);
static struct spi_driver ad9832_driver = {
.driver = {
.name = "ad9832",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = ad9832_probe,

View file

@ -440,7 +440,6 @@ MODULE_DEVICE_TABLE(spi, ad9834_id);
static struct spi_driver ad9834_driver = {
.driver = {
.name = "ad9834",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = ad9834_probe,