From: Shuah Khan Date: Thu, 13 Feb 2014 03:19:09 +0000 (-0700) Subject: ACPI / SBS: fix SBS driver compile error when CONFIG_PM_SLEEP is undefined X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=15029dd7948c4a7adc0860e1750a2a0bba87c473;p=linux-beck.git ACPI / SBS: fix SBS driver compile error when CONFIG_PM_SLEEP is undefined The ACPI SBS driver defines acpi_sbs_resume() when CONFIG_PM_SLEEP is defined. This results in the following compile error when CONFIG_PM_SLEEP is undefined: CC [M] drivers/acpi/sbs.o drivers/acpi/sbs.c:674:8: error: ‘acpi_sbs_resume’ undeclared here (not in a function) Signed-off-by: Shuah Khan Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c index d465ae6cdd00..48c92c68dda2 100644 --- a/drivers/acpi/sbs.c +++ b/drivers/acpi/sbs.c @@ -668,6 +668,8 @@ static int acpi_sbs_resume(struct device *dev) acpi_sbs_callback(sbs); return 0; } +#else +#define acpi_sbs_resume NULL #endif static SIMPLE_DEV_PM_OPS(acpi_sbs_pm, NULL, acpi_sbs_resume);