[PATCH 2/3] uwb: move whcrc_id_table under #ifdef MODULE

From: Namhyung Kim
Date: Wed Dec 01 2010 - 12:45:58 EST


Since whcrc_id_table is used only for module auto-loading
move it under #ifdef MODULE to fix following warning:

CC drivers/uwb/whc-rc.o
drivers/uwb/whc-rc.c:452: warning: âwhcrc_id_tableâ defined but not used

Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx>
Cc: David Vrabel <david.vrabel@xxxxxxx>
---
drivers/uwb/whc-rc.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/uwb/whc-rc.c b/drivers/uwb/whc-rc.c
index 7349558..e3bd62a 100644
--- a/drivers/uwb/whc-rc.c
+++ b/drivers/uwb/whc-rc.c
@@ -448,12 +448,14 @@ static int whcrc_post_reset(struct umc_dev *umc)
return uwb_rc_post_reset(uwb_rc);
}

+#ifdef MODULE
/* PCI device ID's that we handle [so it gets loaded] */
static struct pci_device_id whcrc_id_table[] = {
{ PCI_DEVICE_CLASS(PCI_CLASS_WIRELESS_WHCI, ~0) },
{ /* empty last entry */ }
};
MODULE_DEVICE_TABLE(pci, whcrc_id_table);
+#endif

static struct umc_driver whcrc_driver = {
.name = "whc-rc",
--
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/