diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2011-11-24 16:29:12 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-26 20:19:21 -0800 |
commit | bb74041b1367b4935b8284a2b541f5e4365d3f50 (patch) | |
tree | 0ec392da58cf90d73f440d1ddb8a9cbdec390087 /drivers/tty/serial/ifx6x60.c | |
parent | e86ff4a63c9fdd875ba8492577cd1ad2252f525c (diff) | |
download | talos-op-linux-bb74041b1367b4935b8284a2b541f5e4365d3f50.tar.gz talos-op-linux-bb74041b1367b4935b8284a2b541f5e4365d3f50.zip |
TTY: 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: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty/serial/ifx6x60.c')
-rw-r--r-- | drivers/tty/serial/ifx6x60.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/ifx6x60.c b/drivers/tty/serial/ifx6x60.c index 426434e5eb7c..7e925e20cbaa 100644 --- a/drivers/tty/serial/ifx6x60.c +++ b/drivers/tty/serial/ifx6x60.c @@ -1334,7 +1334,6 @@ MODULE_DEVICE_TABLE(spi, ifx_id_table); static const struct spi_driver ifx_spi_driver = { .driver = { .name = DRVNAME, - .bus = &spi_bus_type, .pm = &ifx_spi_pm, .owner = THIS_MODULE}, .probe = ifx_spi_spi_probe, |