diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-11-29 05:20:35 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-12-01 02:41:44 -0500 |
commit | e23ed600baf1df4819d5ba44240a3b7d555e6de2 (patch) | |
tree | de9d77413f96a79540cb2be65098917eeb162c0f /drivers/input/touchscreen | |
parent | 75255b29d473613e2a5737d6fb368dc4009c90a8 (diff) |
Input: htcpen - switch to DMI-based autoloading
Having module device table based on PNP id produces the following warning:
CC drivers/input/touchscreen/htcpen.o
drivers/input/touchscreen/htcpen.c:50: warning: 'pnp_ids' defined but not used
This happens because it is not a PNP driver, bit rather ISA driver and
pnp_ids table is not used anywhere. To fix this issue let's switch to
DMI-based module table instead,
Reported-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/htcpen.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/input/touchscreen/htcpen.c b/drivers/input/touchscreen/htcpen.c index 62811de6f18f..81e338623944 100644 --- a/drivers/input/touchscreen/htcpen.c +++ b/drivers/input/touchscreen/htcpen.c | |||
@@ -47,12 +47,6 @@ static int invert_y; | |||
47 | module_param(invert_y, bool, 0644); | 47 | module_param(invert_y, bool, 0644); |
48 | MODULE_PARM_DESC(invert_y, "If set, Y axis is inverted"); | 48 | MODULE_PARM_DESC(invert_y, "If set, Y axis is inverted"); |
49 | 49 | ||
50 | static struct pnp_device_id pnp_ids[] = { | ||
51 | { .id = "PNP0cc0" }, | ||
52 | { .id = "" } | ||
53 | }; | ||
54 | MODULE_DEVICE_TABLE(pnp, pnp_ids); | ||
55 | |||
56 | static irqreturn_t htcpen_interrupt(int irq, void *handle) | 50 | static irqreturn_t htcpen_interrupt(int irq, void *handle) |
57 | { | 51 | { |
58 | struct input_dev *htcpen_dev = handle; | 52 | struct input_dev *htcpen_dev = handle; |
@@ -237,6 +231,7 @@ static struct dmi_system_id __initdata htcshift_dmi_table[] = { | |||
237 | }, | 231 | }, |
238 | { } | 232 | { } |
239 | }; | 233 | }; |
234 | MODULE_DEVICE_TABLE(dmi, htcshift_dmi_table); | ||
240 | 235 | ||
241 | static int __init htcpen_isa_init(void) | 236 | static int __init htcpen_isa_init(void) |
242 | { | 237 | { |