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>
This commit is contained in:
committed by
Dmitry Torokhov
parent
c704b4ef1a
commit
41a7458147
@@ -1416,6 +1416,7 @@ static void wacom_remove(struct hid_device *hdev)
|
|||||||
kfree(wacom);
|
kfree(wacom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM
|
||||||
static int wacom_resume(struct hid_device *hdev)
|
static int wacom_resume(struct hid_device *hdev)
|
||||||
{
|
{
|
||||||
struct wacom *wacom = hid_get_drvdata(hdev);
|
struct wacom *wacom = hid_get_drvdata(hdev);
|
||||||
@@ -1436,6 +1437,7 @@ static int wacom_reset_resume(struct hid_device *hdev)
|
|||||||
{
|
{
|
||||||
return wacom_resume(hdev);
|
return wacom_resume(hdev);
|
||||||
}
|
}
|
||||||
|
#endif /* CONFIG_PM */
|
||||||
|
|
||||||
static struct hid_driver wacom_driver = {
|
static struct hid_driver wacom_driver = {
|
||||||
.name = "wacom",
|
.name = "wacom",
|
||||||
|
|||||||
Reference in New Issue
Block a user