From: Andrew Morton Date: Fri, 21 Sep 2012 01:01:57 +0000 (+1000) Subject: drivers-misc-lis3lv02d-lis3lv02d_spic-add-dt-matching-table-passthru-code-fix-fix X-Git-Tag: next-20120921~6^2~143 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=36de2b3cf183993f27a98bfc76993e1f1cb21b02;p=karo-tx-linux.git drivers-misc-lis3lv02d-lis3lv02d_spic-add-dt-matching-table-passthru-code-fix-fix 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 Cc: Randy Dunlap Signed-off-by: Andrew Morton --- diff --git a/drivers/misc/lis3lv02d/lis3lv02d_spi.c b/drivers/misc/lis3lv02d/lis3lv02d_spi.c index 23f398610a39..4b8ccf200194 100644 --- a/drivers/misc/lis3lv02d/lis3lv02d_spi.c +++ b/drivers/misc/lis3lv02d/lis3lv02d_spi.c @@ -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) {