Browse Source

net: ieee802154: 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.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Acked-by: Varka Bhadram <varkabhadram@gmail.com>
Acked-by: Alan Ott <alan@signal11.us>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Antonio Borneo 10 years ago
parent
commit
fc586c4111
2 changed files with 0 additions and 2 deletions
  1. 0 1
      drivers/net/ieee802154/cc2520.c
  2. 0 1
      drivers/net/ieee802154/mrf24j40.c

+ 0 - 1
drivers/net/ieee802154/cc2520.c

@@ -1151,7 +1151,6 @@ MODULE_DEVICE_TABLE(of, cc2520_of_ids);
 static struct spi_driver cc2520_driver = {
 static struct spi_driver cc2520_driver = {
 	.driver = {
 	.driver = {
 		.name = "cc2520",
 		.name = "cc2520",
-		.bus = &spi_bus_type,
 		.owner = THIS_MODULE,
 		.owner = THIS_MODULE,
 		.of_match_table = of_match_ptr(cc2520_of_ids),
 		.of_match_table = of_match_ptr(cc2520_of_ids),
 	},
 	},

+ 0 - 1
drivers/net/ieee802154/mrf24j40.c

@@ -812,7 +812,6 @@ MODULE_DEVICE_TABLE(spi, mrf24j40_ids);
 static struct spi_driver mrf24j40_driver = {
 static struct spi_driver mrf24j40_driver = {
 	.driver = {
 	.driver = {
 		.name = "mrf24j40",
 		.name = "mrf24j40",
-		.bus = &spi_bus_type,
 		.owner = THIS_MODULE,
 		.owner = THIS_MODULE,
 	},
 	},
 	.id_table = mrf24j40_ids,
 	.id_table = mrf24j40_ids,