diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2009-08-31 18:32:20 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-09-19 02:15:05 -0400 |
commit | 53de5356be3ac62c22ae1da266943059b169d9b1 (patch) | |
tree | 5ffcafb1ad9b78e3b471d47fc79b867d7156e4c2 /drivers/acpi/scan.c | |
parent | 59fc9e5e21baf2bf5c87d8006e006007c3a708c2 (diff) |
ACPI: don't pass handle for fixed hardware notifications
Fixed hardware devices have no handles, so just pass an explicit
NULL rather than something that looks like it might be meaningful.
acpi_device_notify() doesn't need the handle anyway; the only
reason it takes it as an argument is because the acpi_notify_handler
typedef requires it.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r-- | drivers/acpi/scan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 7b90900b2118..408ebde18986 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -370,7 +370,8 @@ static acpi_status acpi_device_notify_fixed(void *data) | |||
370 | { | 370 | { |
371 | struct acpi_device *device = data; | 371 | struct acpi_device *device = data; |
372 | 372 | ||
373 | acpi_device_notify(device->handle, ACPI_FIXED_HARDWARE_EVENT, device); | 373 | /* Fixed hardware devices have no handles */ |
374 | acpi_device_notify(NULL, ACPI_FIXED_HARDWARE_EVENT, device); | ||
374 | return AE_OK; | 375 | return AE_OK; |
375 | } | 376 | } |
376 | 377 | ||