diff options
| author | David Mosberger-Tang <[email protected]> | 2024-02-12 20:22:30 +0000 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2024-02-15 13:09:16 +0200 |
| commit | dd2f633eafa4ce5b9cb2ee09bf5d709535a02e79 (patch) | |
| tree | fb7fb62b961922408699375dd33dc71caf584ba9 /drivers/net/wireless/microchip/wilc1000/wlan.c | |
| parent | cb5942b77c05d54310a0420cac12935e9b6aa21c (diff) | |
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 <[email protected]>
Tested-By: Alexis Lothoré <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'drivers/net/wireless/microchip/wilc1000/wlan.c')
| -rw-r--r-- | drivers/net/wireless/microchip/wilc1000/wlan.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/wireless/microchip/wilc1000/wlan.c b/drivers/net/wireless/microchip/wilc1000/wlan.c index 6b2f2269ddf8..68be233c36ce 100644 --- a/drivers/net/wireless/microchip/wilc1000/wlan.c +++ b/drivers/net/wireless/microchip/wilc1000/wlan.c @@ -12,11 +12,6 @@ #define WAKE_UP_TRIAL_RETRY 10000 -static inline bool is_wilc1000(u32 id) -{ - return (id & (~WILC_CHIP_REV_FIELD)) == WILC_1000_BASE_ID; -} - static inline void acquire_bus(struct wilc *wilc, enum bus_acquire acquire) { mutex_lock(&wilc->hif_cs); |