kernel/acpi: Add missing ACPI_SERIAL_INIT calls for lock initialization. master
authorImre Vadasz <imre@vdsz.com>
Wed, 26 Nov 2014 13:37:52 +0000 (14:37 +0100)
committerImre Vadasz <imre@vdsz.com>
Wed, 26 Nov 2014 18:09:13 +0000 (19:09 +0100)
sys/dev/acpica/acpi_dock/acpi_dock.c
sys/dev/acpica/acpi_fujitsu/acpi_fujitsu.c
sys/dev/acpica/acpi_hp/acpi_hp.c
sys/dev/acpica/acpi_panasonic/acpi_panasonic.c
sys/dev/acpica/acpi_smbat.c
sys/dev/acpica/acpi_thinkpad/acpi_thinkpad.c
sys/dev/acpica/acpi_toshiba/acpi_toshiba.c
sys/dev/acpica/acpi_video/acpi_video.c
sys/dev/acpica/acpi_wmi/acpi_wmi.c

index fb7f75e..3c5e214 100644 (file)
@@ -483,6 +483,7 @@ acpi_dock_attach(device_t dev)
 
        AcpiEvaluateObject(h, "_INI", NULL, NULL);
 
+       ACPI_SERIAL_INIT(dock);
        ACPI_SERIAL_BEGIN(dock);
 
        acpi_dock_device_check(dev);
index 114b85b..7adc2b4 100644 (file)
@@ -242,6 +242,7 @@ acpi_fujitsu_attach(device_t dev)
 {
        struct acpi_fujitsu_softc *sc;
 
+       ACPI_SERIAL_INIT(fujitsu);
        ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
 
        sc = device_get_softc(dev);
index b5ac075..8515b83 100644 (file)
@@ -471,6 +471,7 @@ acpi_hp_attach(device_t dev)
        struct acpi_softc       *acpi_sc;
        int                     arg;
 
+       ACPI_SERIAL_INIT(hp);
        ACPI_FUNCTION_TRACE((char *)(uintptr_t) __func__);
 
        sc = device_get_softc(dev);
index 9c3529b..0b7b2f4 100644 (file)
@@ -155,6 +155,7 @@ acpi_panasonic_attach(device_t dev)
        sc = device_get_softc(dev);
        sc->dev = dev;
        sc->handle = acpi_get_handle(dev);
+       ACPI_SERIAL_INIT(panasonic);
 
        acpi_sc = acpi_device_get_parent_softc(dev);
 
index 673c8f8..545e218 100644 (file)
@@ -125,6 +125,7 @@ acpi_smbat_attach(device_t dev)
        uint32_t base;
 
        sc = device_get_softc(dev);
+       ACPI_SERIAL_INIT(smbat);
        if (ACPI_FAILURE(acpi_GetInteger(acpi_get_handle(dev), "_EC", &base))) {
                device_printf(dev, "cannot get EC base address\n");
                return (ENXIO);
index 440f823..39c2cb6 100644 (file)
@@ -378,6 +378,7 @@ acpi_thinkpad_attach(device_t dev)
        devclass_t              ec_devclass;
        int                     i;
 
+       ACPI_SERIAL_INIT(thinkpad);
        ACPI_FUNCTION_TRACE((char *)(uintptr_t) __func__);
 
        sc = device_get_softc(dev);
index 6e1d88a..551259c 100644 (file)
@@ -239,6 +239,7 @@ acpi_toshiba_attach(device_t dev)
        sc = device_get_softc(dev);
        sc->dev = dev;
        sc->handle = acpi_get_handle(dev);
+       ACPI_SERIAL_INIT(toshiba);
 
        acpi_sc = acpi_device_get_parent_softc(dev);
        sysctl_ctx_init(&sc->sysctl_ctx);
index 27594d0..e85e1e8 100644 (file)
@@ -248,6 +248,8 @@ acpi_video_attach(device_t dev)
        acpi_sc = devclass_get_softc(devclass_find("acpi"), 0);
        if (acpi_sc == NULL)
                return (ENXIO);
+       ACPI_SERIAL_INIT(video);
+       ACPI_SERIAL_INIT(video_output);
        ACPI_SERIAL_BEGIN(video);
        if (acpi_video_sysctl_tree == NULL) {
                acpi_video_sysctl_tree = SYSCTL_ADD_NODE(&acpi_video_sysctl_ctx,
index 68f12d4..224c4b9 100644 (file)
@@ -230,6 +230,7 @@ acpi_wmi_attach(device_t dev)
        int ret;
        ACPI_STATUS status;
 
+       ACPI_SERIAL_INIT(acpi_wmi);
        ACPI_FUNCTION_TRACE((char *)(uintptr_t)__func__);
        sc = device_get_softc(dev);
        ret = ENXIO;