Commit 9030d52c authored by Antonio Borneo's avatar Antonio Borneo Committed by Kalle Valo

wireless: cw1200: 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: default avatarAntonio Borneo <borneo.antonio@gmail.com>
To: Solomon Peachy <pizza@shaftnet.org>
To: Kalle Valo <kvalo@codeaurora.org>
To: linux-wireless@vger.kernel.org
To: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 8d6b538a
...@@ -467,7 +467,6 @@ static struct spi_driver spi_driver = { ...@@ -467,7 +467,6 @@ static struct spi_driver spi_driver = {
.remove = cw1200_spi_disconnect, .remove = cw1200_spi_disconnect,
.driver = { .driver = {
.name = "cw1200_wlan_spi", .name = "cw1200_wlan_spi",
.bus = &spi_bus_type,
.owner = THIS_MODULE, .owner = THIS_MODULE,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.pm = &cw1200_pm_ops, .pm = &cw1200_pm_ops,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment