diff mbox

[1/3] ipmi/acpi: Fix the building error in ipmi module

Message ID 1260974431-4330-1-git-send-email-yakui.zhao@intel.com (mailing list archive)
State RFC, archived
Headers show

Commit Message

Zhao, Yakui Dec. 16, 2009, 2:40 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c
index 8dd0f37..8eebbe4 100644
--- a/drivers/pnp/pnpacpi/core.c
+++ b/drivers/pnp/pnpacpi/core.c
@@ -155,6 +155,13 @@  struct pnp_protocol pnpacpi_protocol = {
 #endif
 };
 
+struct acpi_device *pnp_acpi_device(struct pnp_dev *dev)
+{
+	if (dev->protocol == &pnpacpi_protocol)
+		return dev->data;
+	return NULL;
+}
+EXPORT_SYMBOL_GPL(pnp_acpi_device);
 static int __init pnpacpi_add_device(struct acpi_device *device)
 {
 	acpi_handle temp = NULL;
diff --git a/include/linux/pnp.h b/include/linux/pnp.h
index 7c4193e..0ae2c64 100644
--- a/include/linux/pnp.h
+++ b/include/linux/pnp.h
@@ -335,16 +335,11 @@  extern struct pnp_protocol pnpbios_protocol;
 #endif
 
 #ifdef CONFIG_PNPACPI
-extern struct pnp_protocol pnpacpi_protocol;
 
-static inline struct acpi_device *pnp_acpi_device(struct pnp_dev *dev)
-{
-	if (dev->protocol == &pnpacpi_protocol)
-		return dev->data;
-	return NULL;
-}
+extern struct acpi_device *pnp_acpi_device(struct pnp_dev *dev);
 #else
-#define pnp_acpi_device(dev) 0
+static inline struct acpi_device *pnp_acpi_device(struct pnp_dev *dev)
+{ return NULL; }
 #endif
 
 /* status */