diff options
| author | Brian Norris <computersforpeace@gmail.com> | 2014-10-22 13:17:38 -0400 |
|---|---|---|
| committer | Brian Norris <computersforpeace@gmail.com> | 2014-10-22 13:33:36 -0400 |
| commit | d4efafcc040dcc91b09fd393756e4ee4ad7bf9f2 (patch) | |
| tree | 2f3461883d1891f94c44c576545cd0cd8177a5d3 | |
| parent | a1ff7d64c5361c15bac653708a679de13506d283 (diff) | |
mtd: docg3: fix 'defined but not used' warning
With CONFIG_OF=n, we can see the following warning:
drivers/mtd/devices/docg3.c:2122:28: warning: 'docg3_dt_ids' defined but not used [-Wunused-variable]
static struct of_device_id docg3_dt_ids[] = {
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Robert Jarzmik <robert.jarzmik@free.fr>
| -rw-r--r-- | drivers/mtd/devices/docg3.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c index abd94668a05d..0d9d3ee68b61 100644 --- a/drivers/mtd/devices/docg3.c +++ b/drivers/mtd/devices/docg3.c | |||
| @@ -2119,11 +2119,13 @@ static int __exit docg3_release(struct platform_device *pdev) | |||
| 2119 | return 0; | 2119 | return 0; |
| 2120 | } | 2120 | } |
| 2121 | 2121 | ||
| 2122 | #ifdef CONFIG_OF | ||
| 2122 | static struct of_device_id docg3_dt_ids[] = { | 2123 | static struct of_device_id docg3_dt_ids[] = { |
| 2123 | { .compatible = "m-systems,diskonchip-g3" }, | 2124 | { .compatible = "m-systems,diskonchip-g3" }, |
| 2124 | {} | 2125 | {} |
| 2125 | }; | 2126 | }; |
| 2126 | MODULE_DEVICE_TABLE(of, docg3_dt_ids); | 2127 | MODULE_DEVICE_TABLE(of, docg3_dt_ids); |
| 2128 | #endif | ||
| 2127 | 2129 | ||
| 2128 | static struct platform_driver g3_driver = { | 2130 | static struct platform_driver g3_driver = { |
| 2129 | .driver = { | 2131 | .driver = { |
