wifi: wilc1000: validate chip id during bus probe
authorDavid Mosberger-Tang <davidm@egauge.net>
Mon, 12 Feb 2024 20:22:30 +0000 (20:22 +0000)
committerKalle Valo <kvalo@kernel.org>
Thu, 15 Feb 2024 11:09:16 +0000 (13:09 +0200)
commitdd2f633eafa4ce5b9cb2ee09bf5d709535a02e79
treefb7fb62b961922408699375dd33dc71caf584ba9
parentcb5942b77c05d54310a0420cac12935e9b6aa21c
wifi: wilc1000: validate chip id during bus probe

Previously, the driver created a net device (typically wlan0) as soon
as the module was loaded.  This commit changes the driver to follow
normal Linux convention of creating the net device only when bus
probing detects a supported chip.

Signed-off-by: David Mosberger-Tang <davidm@egauge.net>
Tested-By: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240212202057.3468714-1-davidm@egauge.net
drivers/net/wireless/microchip/wilc1000/spi.c
drivers/net/wireless/microchip/wilc1000/wlan.c
drivers/net/wireless/microchip/wilc1000/wlan.h