ARM: imx/eukrea_mbimx27: fix compile warnings about unused variables
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 10 Feb 2011 10:07:27 +0000 (11:07 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 10 Feb 2011 12:53:41 +0000 (13:53 +0100)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/eukrea_mbimx27-baseboard.c

index b6d68cfefde320aeb975506bd0304e690a722a5d..fa5288018ba7bcb555def76161f797717d4b0303 100644 (file)
@@ -249,7 +249,7 @@ static const struct imxuart_platform_data uart_pdata __initconst = {
 
 #define ADS7846_PENDOWN (GPIO_PORTD | 25)
 
-static void ads7846_dev_init(void)
+static void __maybe_unused ads7846_dev_init(void)
 {
        if (gpio_request(ADS7846_PENDOWN, "ADS7846 pendown") < 0) {
                printk(KERN_ERR "can't get ads746 pen down GPIO\n");
@@ -268,7 +268,8 @@ static struct ads7846_platform_data ads7846_config __initdata = {
        .keep_vref_on           = 1,
 };
 
-static struct spi_board_info eukrea_mbimx27_spi_board_info[] __initdata = {
+static struct spi_board_info __maybe_unused
+               eukrea_mbimx27_spi_board_info[] __initdata = {
        [0] = {
                .modalias       = "ads7846",
                .bus_num        = 0,