]> git.karo-electronics.de Git - karo-tx-linux.git/commit
blacklight: remove redundant spi driver bus initialization
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 3 May 2012 05:44:21 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:46 +0000 (15:46 +1000)
commitc7181d61b071deb168aa3ece2c91e404b45ab498
tree1abc671d97fce5c678d12780a9b54c7c50edacae
parentf8e267c259c51f8455b50012cb46b4e14b941a33
blacklight: 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_driver_register() 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>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/ams369fg06.c
drivers/video/backlight/ld9040.c
drivers/video/backlight/ltv350qv.c
drivers/video/backlight/s6e63m0.c