[PATCH] ACPI: bay: unsuppress uevents

From: Kristen Carlson Accardi
Date: Wed May 09 2007 - 18:59:13 EST


ACPI: bay: unsuppress uevents

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@xxxxxxxxx>

Index: 2.6-git/drivers/acpi/bay.c
===================================================================
--- 2.6-git.orig/drivers/acpi/bay.c
+++ 2.6-git/drivers/acpi/bay.c
@@ -287,6 +287,11 @@ static int bay_add(acpi_handle handle, i
}
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/