]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers-misc-lis3lv02d-lis3lv02d_spic-add-dt-matching-table-passthru-code-fix-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 21 Sep 2012 01:01:57 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Sep 2012 05:59:07 +0000 (15:59 +1000)
fix lis302dl_spi_dt_ids unused warning when CONFIG_OF=n

drivers/misc/lis3lv02d/lis3lv02d_spi.c:63: warning: 'lis302dl_spi_dt_ids' defined but not used

Cc: Daniel Mack <zonque@gmail.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/misc/lis3lv02d/lis3lv02d_spi.c

index 23f398610a3990e7d69e10291244a012de8574e6..4b8ccf200194e2235b679ea13a9024c4393f2389 100644 (file)
@@ -60,11 +60,13 @@ static int lis3_spi_init(struct lis3lv02d *lis3)
 static union axis_conversion lis3lv02d_axis_normal =
        { .as_array = { 1, 2, 3 } };
 
+#ifdef CONFIG_OF
 static struct of_device_id lis302dl_spi_dt_ids[] = {
        { .compatible = "st,lis302dl-spi" },
        {}
 };
 MODULE_DEVICE_TABLE(of, lis302dl_spi_dt_ids);
+#endif
 
 static int __devinit lis302dl_spi_probe(struct spi_device *spi)
 {