From: Antonio Borneo Date: Tue, 23 Jun 2015 14:53:05 +0000 (+0800) Subject: wireless: cw1200: Remove redundant spi driver bus initialization X-Git-Tag: v4.14-rc1~4777^2~246^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9030d52cfb340f57d86e1b5d995a463eaddb977b;p=platform%2Fkernel%2Flinux-rpi.git 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: Antonio Borneo To: Solomon Peachy To: Kalle Valo To: linux-wireless@vger.kernel.org To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/cw1200/cw1200_spi.c b/drivers/net/wireless/cw1200/cw1200_spi.c index 7603546..29185ae 100644 --- a/drivers/net/wireless/cw1200/cw1200_spi.c +++ b/drivers/net/wireless/cw1200/cw1200_spi.c @@ -467,7 +467,6 @@ static struct spi_driver spi_driver = { .remove = cw1200_spi_disconnect, .driver = { .name = "cw1200_wlan_spi", - .bus = &spi_bus_type, .owner = THIS_MODULE, #ifdef CONFIG_PM .pm = &cw1200_pm_ops,