Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi Fix this correctly. Thanks jruoho@



details:   https://anonhg.NetBSD.org/src/rev/8176cf027a7e
branches:  trunk
changeset: 752698:8176cf027a7e
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Mar 04 13:07:01 2010 +0000

description:
Fix this correctly.  Thanks jruoho@

diffstat:

 sys/dev/acpi/smbus_acpi.c |  15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diffs (57 lines):

diff -r 33436bfedea6 -r 8176cf027a7e sys/dev/acpi/smbus_acpi.c
--- a/sys/dev/acpi/smbus_acpi.c Thu Mar 04 09:57:12 2010 +0000
+++ b/sys/dev/acpi/smbus_acpi.c Thu Mar 04 13:07:01 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smbus_acpi.c,v 1.4 2010/03/04 03:10:18 pgoyette Exp $ */
+/* $NetBSD: smbus_acpi.c,v 1.5 2010/03/04 13:07:01 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -36,7 +36,10 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smbus_acpi.c,v 1.4 2010/03/04 03:10:18 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smbus_acpi.c,v 1.5 2010/03/04 13:07:01 pgoyette Exp $");
+
+#define _COMPONENT             ACPI_RESOURCE_COMPONENT
+ACPI_MODULE_NAME               ("smbus_acpi")
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -163,7 +166,7 @@
        }
 done:
        if (smi_buf.Pointer != NULL)
-               AcpiOsFree(smi_buf.Pointer);
+               ACPI_FREE(smi_buf.Pointer);
 
        return r;
 }
@@ -212,7 +215,7 @@
                }
        }
        if (smi_buf.Pointer != NULL)
-               AcpiOsFree(smi_buf.Pointer);
+               ACPI_FREE(smi_buf.Pointer);
 
        /* Install notify handler if possible */
        rv = AcpiInstallNotifyHandler(sc->sc_devnode->ad_handle,
@@ -419,7 +422,7 @@
                }
        }
        if (smbuf.Pointer)
-               AcpiOsFree(smbuf.Pointer);
+               ACPI_FREE(smbuf.Pointer);
 
        return r;
 }
@@ -464,7 +467,7 @@
                }
 done:
                if (alert.Pointer != NULL)
-                       AcpiOsFree(alert.Pointer);
+                       ACPI_FREE(alert.Pointer);
        } while (status == 0);
 }
 



Home | Main Index | Thread Index | Old Index