Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geert Uytterhoeven and committed by
Dmitry Torokhov
41a74581 c704b4ef

+2
+2
drivers/hid/wacom_sys.c
··· 1416 1416 kfree(wacom); 1417 1417 } 1418 1418 1419 + #ifdef CONFIG_PM 1419 1420 static int wacom_resume(struct hid_device *hdev) 1420 1421 { 1421 1422 struct wacom *wacom = hid_get_drvdata(hdev); ··· 1437 1436 { 1438 1437 return wacom_resume(hdev); 1439 1438 } 1439 + #endif /* CONFIG_PM */ 1440 1440 1441 1441 static struct hid_driver wacom_driver = { 1442 1442 .name = "wacom",