staging:iio: Remove redundant spi driver bus initialization
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 5 Dec 2011 15:53:05 +0000 (16:53 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Dec 2011 19:33:19 +0000 (11:33 -0800)
commit94386ab0b4c5a4e15afae8542cb01caa2ff37594
tree5d6986be5486537c2a50f025a06962a195bd1838
parentc03f2c5368183687660b1d39350a153aeb8a1a6a
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>
13 files changed:
drivers/staging/iio/adc/ad7280a.c
drivers/staging/iio/adc/ad7298_core.c
drivers/staging/iio/adc/ad7476_core.c
drivers/staging/iio/adc/ad7606_spi.c
drivers/staging/iio/adc/ad7780.c
drivers/staging/iio/adc/ad7793.c
drivers/staging/iio/adc/ad7816.c
drivers/staging/iio/adc/ad7887_core.c
drivers/staging/iio/adc/adt7310.c
drivers/staging/iio/addac/adt7316-spi.c
drivers/staging/iio/dac/ad5446.c
drivers/staging/iio/dds/ad9832.c
drivers/staging/iio/dds/ad9834.c