ipmi: Use the proper type for acpi_handle
authorCorey Minyard <cminyard@mvista.com>
Fri, 10 Oct 2014 22:47:04 +0000 (17:47 -0500)
committerCorey Minyard <cminyard@mvista.com>
Thu, 11 Dec 2014 21:04:06 +0000 (15:04 -0600)
Minor cleanup, don't use a void pointer, use the right type.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
include/linux/ipmi.h

index 47b8f8ddb2b14c27fecc364a5fa701e1166209a4..838dbfa3c33111914ec6e7386ee96aeae24d1270 100644 (file)
@@ -37,6 +37,7 @@
 
 #include <linux/list.h>
 #include <linux/proc_fs.h>
+#include <linux/acpi.h> /* For acpi_handle */
 
 struct module;
 struct device;
@@ -281,13 +282,15 @@ enum ipmi_addr_src {
 const char *ipmi_addr_src_to_str(enum ipmi_addr_src src);
 
 union ipmi_smi_info_union {
+#ifdef CONFIG_ACPI
        /*
         * the acpi_info element is defined for the SI_ACPI
         * address type
         */
        struct {
-               void *acpi_handle;
+               acpi_handle acpi_handle;
        } acpi_info;
+#endif
 };
 
 struct ipmi_smi_info {