summaryrefslogtreecommitdiff
path: root/drivers/staging/iio/dds
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-12-05 16:53:05 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-08 11:33:19 -0800
commit94386ab0b4c5a4e15afae8542cb01caa2ff37594 (patch)
tree5d6986be5486537c2a50f025a06962a195bd1838 /drivers/staging/iio/dds
parentc03f2c5368183687660b1d39350a153aeb8a1a6a (diff)
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>
Diffstat (limited to 'drivers/staging/iio/dds')
-rw-r--r--drivers/staging/iio/dds/ad9832.c1
-rw-r--r--drivers/staging/iio/dds/ad9834.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/iio/dds/ad9832.c b/drivers/staging/iio/dds/ad9832.c
index 1c878207ea87..d612d3d55ca7 100644
--- a/drivers/staging/iio/dds/ad9832.c
+++ b/drivers/staging/iio/dds/ad9832.c
@@ -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,
diff --git a/drivers/staging/iio/dds/ad9834.c b/drivers/staging/iio/dds/ad9834.c
index cd10479730eb..59a28134d869 100644
--- a/drivers/staging/iio/dds/ad9834.c
+++ b/drivers/staging/iio/dds/ad9834.c
@@ -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,