diff options
| author | Geert Uytterhoeven <geert@linux-m68k.org> | 2014-08-11 14:03:19 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-08-12 12:59:29 -0400 |
| commit | 41a7458147a435e082ceccd3a7d46f3390ea90f3 (patch) | |
| tree | 0281f959911f8b8bbc6e29cfdaf457a0a6c490e1 | |
| parent | c704b4ef1a819b053fd33617e861da1932077314 (diff) | |
Input: wacom - fix compiler warning if !CONFIG_PM
If CONFIG_PM is not set:
drivers/hid/wacom_sys.c:1436: warning: ‘wacom_reset_resume’ defined but
not used
Protect the unused functions by #ifdef CONFIG_PM to fix this.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
| -rw-r--r-- | drivers/hid/wacom_sys.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c index 3e388ec31da8..f0db7eca9023 100644 --- a/drivers/hid/wacom_sys.c +++ b/drivers/hid/wacom_sys.c | |||
| @@ -1416,6 +1416,7 @@ static void wacom_remove(struct hid_device *hdev) | |||
| 1416 | kfree(wacom); | 1416 | kfree(wacom); |
| 1417 | } | 1417 | } |
| 1418 | 1418 | ||
| 1419 | #ifdef CONFIG_PM | ||
| 1419 | static int wacom_resume(struct hid_device *hdev) | 1420 | static int wacom_resume(struct hid_device *hdev) |
| 1420 | { | 1421 | { |
| 1421 | struct wacom *wacom = hid_get_drvdata(hdev); | 1422 | struct wacom *wacom = hid_get_drvdata(hdev); |
| @@ -1436,6 +1437,7 @@ static int wacom_reset_resume(struct hid_device *hdev) | |||
| 1436 | { | 1437 | { |
| 1437 | return wacom_resume(hdev); | 1438 | return wacom_resume(hdev); |
| 1438 | } | 1439 | } |
| 1440 | #endif /* CONFIG_PM */ | ||
| 1439 | 1441 | ||
| 1440 | static struct hid_driver wacom_driver = { | 1442 | static struct hid_driver wacom_driver = { |
| 1441 | .name = "wacom", | 1443 | .name = "wacom", |
