diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-10-17 09:39:11 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:37 -0400 |
commit | 801e7fb738c1049d93417dd8c2c4bf9cf567b668 (patch) | |
tree | 5589db9fd04b320e64166a8c1f1b7d5a73f8bc6f /drivers/xen | |
parent | e05dacd71db0a5da7c1a44bcaab2a8a240b9c233 (diff) | |
download | kernel_goldelico_gta04-801e7fb738c1049d93417dd8c2c4bf9cf567b668.zip kernel_goldelico_gta04-801e7fb738c1049d93417dd8c2c4bf9cf567b668.tar.gz kernel_goldelico_gta04-801e7fb738c1049d93417dd8c2c4bf9cf567b668.tar.bz2 |
xen: dbgp: Fix warning when CONFIG_PCI is not enabled.
I saw this on ARM:
linux/drivers/xen/dbgp.c:11:23: warning: unused variable 'ctrlr' [-Wunused-variable]
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Jan Beulich <JBeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/dbgp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/xen/dbgp.c b/drivers/xen/dbgp.c index 42569c7..f3ccc80 100644 --- a/drivers/xen/dbgp.c +++ b/drivers/xen/dbgp.c @@ -8,7 +8,9 @@ static int xen_dbgp_op(struct usb_hcd *hcd, int op) { +#ifdef CONFIG_PCI const struct device *ctrlr = hcd_to_bus(hcd)->controller; +#endif struct physdev_dbgp_op dbgp; if (!xen_initial_domain()) |