]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
staging: wilc1000: restore wilc_spi_dev variable
authorArnd Bergmann <arnd@arndb.de>
Fri, 16 Oct 2015 20:05:34 +0000 (22:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:02:00 +0000 (22:02 -0700)
A recent change to wilc1000 accidentally deleted an important
variable, so we now get a build error when the SPI mode is
selected:

ERROR: "wilc_spi_dev" [drivers/staging/wilc1000/wilc1000.ko] undefined!

This partially reverts the broken commit to put the variable back.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 56293ff232b9 ("staging: wilc1000: linux_wlan_spi: include header")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan_spi.c

index 760b72a9a6ffc915dda1ec09959f48d0797782a1..039d06192d6b1af853e97207a1a11ccb642cb828 100644 (file)
@@ -41,6 +41,7 @@
 
 static u32 SPEED = MIN_SPEED;
 
+struct spi_device *wilc_spi_dev;
 void linux_spi_deinit(void *vp);
 
 static int __init wilc_bus_probe(struct spi_device *spi)