ACPI: bay: unsuppress uevents
authorKristen Carlson Accardi <kristen.c.accardi@intel.com>
Wed, 9 May 2007 22:55:53 +0000 (15:55 -0700)
committerLen Brown <len.brown@intel.com>
Thu, 10 May 2007 07:30:42 +0000 (03:30 -0400)
Since platform devices seem to get uevents suppressed by default,
manually unsuppress for the bay device since we want to be able
to send uevents.

Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/bay.c

index fb3f31b5e69f6587ff4c7cada15b2291c64fad40..00d3f3f17a2a029434ddf97d1346c5ed781e0ca9 100644 (file)
@@ -288,6 +288,11 @@ static int bay_add(acpi_handle handle, int id)
        new_bay->pdev = pdev;
        platform_set_drvdata(pdev, new_bay);
 
+       /*
+        * we want the bay driver to be able to send uevents
+        */
+       pdev->dev.uevent_suppress = 0;
+
        if (acpi_bay_add_fs(new_bay)) {
                platform_device_unregister(new_bay->pdev);
                goto bay_add_err;