diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2014-10-29 21:58:33 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-11 00:19:33 +0100 |
commit | 004f7d457ef57d46ddf5f8380aa169214c166fca (patch) | |
tree | a4946bc0330ff90d3261220b6d04bf7a56b9a107 | |
parent | arm: boot: dts: am4372: enable dwc3 suspend PHY quirk (diff) | |
download | linux-004f7d457ef57d46ddf5f8380aa169214c166fca.tar.xz linux-004f7d457ef57d46ddf5f8380aa169214c166fca.zip |
usb: gadget: pxa27x_udc: fix warning in non device-tree build
The recent change bringing device-tree support triggers a warning in a
non device-tree build :
drivers/usb/gadget/udc/pxa27x_udc.c:2405:28: warning: 'udc_pxa_dt_ids'
defined but not used [-Wunused-variable]
Fix the warning with a preprocessor condition.
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/gadget/udc/pxa27x_udc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/pxa27x_udc.c b/drivers/usb/gadget/udc/pxa27x_udc.c index 69e7b816d880..9b03fab13707 100644 --- a/drivers/usb/gadget/udc/pxa27x_udc.c +++ b/drivers/usb/gadget/udc/pxa27x_udc.c @@ -2400,11 +2400,13 @@ static struct pxa_udc memory = { } }; +#if defined(CONFIG_OF) static struct of_device_id udc_pxa_dt_ids[] = { { .compatible = "marvell,pxa270-udc" }, {} }; MODULE_DEVICE_TABLE(of, udc_pxa_dt_ids); +#endif /** * pxa_udc_probe - probes the udc device |