From: Arnd Bergmann Date: Fri, 16 Oct 2015 20:05:34 +0000 (+0200) Subject: staging: wilc1000: restore wilc_spi_dev variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=92af89d37c415c61c676bb28ae7facdef1821477;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: wilc1000: restore wilc_spi_dev variable 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 Fixes: 56293ff232b9 ("staging: wilc1000: linux_wlan_spi: include header") Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/linux_wlan_spi.c b/drivers/staging/wilc1000/linux_wlan_spi.c index 760b72a9a6ff..039d06192d6b 100644 --- a/drivers/staging/wilc1000/linux_wlan_spi.c +++ b/drivers/staging/wilc1000/linux_wlan_spi.c @@ -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)