Skip to content

Commit

Permalink
ACPI: bay: unsuppress uevents
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kristen Carlson Accardi authored and Len Brown committed May 10, 2007
1 parent 79a8f70 commit 1f9767d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/acpi/bay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1f9767d

Please sign in to comment.