platform/surface: surface_gpe: Fix non-PM_SLEEP build warnings
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 14 Dec 2020 23:33:36 +0000 (15:33 -0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 Jan 2021 14:54:27 +0000 (15:54 +0100)
commit6a4b1f2dff558d75ee4f2ce88595a933b6918183
tree79f406256fae642748aed6abd4534eda63800005
parentbbaa2e95e23e74791dd75b90d5ad9aad535acc6e
platform/surface: surface_gpe: Fix non-PM_SLEEP build warnings

Fix build warnings when CONFIG_PM_SLEEP is not enabled and these
functions are not used:

../drivers/platform/surface/surface_gpe.c:189:12: warning: ‘surface_gpe_resume’ defined but not used [-Wunused-function]
 static int surface_gpe_resume(struct device *dev)
            ^~~~~~~~~~~~~~~~~~
../drivers/platform/surface/surface_gpe.c:184:12: warning: ‘surface_gpe_suspend’ defined but not used [-Wunused-function]
 static int surface_gpe_suspend(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~

Fixes: 274335f1c557 ("platform/surface: Add Driver to set up lid GPEs on MS Surface device")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Maximilian Luz <luzmaximilian@gmail.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: platform-driver-x86@vger.kernel.org
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20201214233336.19782-1-rdunlap@infradead.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/surface/surface_gpe.c