ARM: pxa: fix typo 'CONFIG_SPI_PXA2XX_MASTER'
authorPaul Bolle <pebolle@tiscali.nl>
Fri, 16 May 2014 10:40:40 +0000 (12:40 +0200)
committerHaojian Zhuang <haojian.zhuang@linaro.org>
Fri, 11 Jul 2014 00:50:53 +0000 (08:50 +0800)
CONFIG_SPI_PXA2XX_MASTER was used were it was surely meant to use
CONFIG_SPI_PXA2XX_MODULE. Use the IS_ENABLED() macro here, as it guards
against typos like this one.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Acked-by: Haojian Zhuang <haojian.zhuang@linaro.org>
arch/arm/mach-pxa/corgi.c

index 91dd1c7..06022b2 100644 (file)
@@ -514,7 +514,7 @@ static struct pxa2xx_udc_mach_info udc_info __initdata = {
        .gpio_pullup            = CORGI_GPIO_USB_PULLUP,
 };
 
-#if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MASTER)
+#if IS_ENABLED(CONFIG_SPI_PXA2XX)
 static struct pxa2xx_spi_master corgi_spi_info = {
        .num_chipselect = 3,
 };