Skip to contentSkip to conversation

acpi: fix drivers/acpi/glue.c build error

PATCH In review [email protected] 1 participant 1 message May 1, 2008 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 10/10 acpi: fix drivers/acpi/glue.c build error

From: Ingo Molnar <[email protected]>

x86.git testing found the following build bug:

drivers/built-in.o: In function `acpi_rtc_init':
glue.c:(.init.text+0x16c3): undefined reference to `pnp_bus_type'

this tries to use PNP bus infrastructure even in the !PNP case.

---

 drivers/acpi/glue.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/acpi/glue.c renamed from drivers/acpi/glue.c~acpi-fix-drivers-acpi-gluec-build-error +3 -0
diff -puN drivers/acpi/glue.c~acpi-fix-drivers-acpi-gluec-build-error drivers/acpi/glue.c
@@ -299,6 +299,7 @@ static void rtc_wake_off(struct device *
 
 static struct cmos_rtc_board_info rtc_info;
 
+#ifdef CONFIG_PNP
 
 /* PNP devices are registered in a subsys_initcall();
  * ACPI specifies the PNP IDs to use.
@@ -360,4 +361,6 @@ static int __init acpi_rtc_init(void)
 /* do this between RTC subsys_initcall() and rtc_cmos driver_initcall() */
 fs_initcall(acpi_rtc_init);
 
+#endif /* CONFIG_PNP */
+
 #endif

_