aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/pnpacpi
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2009-09-21 15:35:09 -0400
committerLen Brown <len.brown@intel.com>2009-09-25 14:25:52 -0400
commitea8d82fd316208bd0ffe6f64823d04bcb8c57158 (patch)
tree56b6edb6f6b9173230118127b898e2964403a118 /drivers/pnp/pnpacpi
parent78b8e141f8458ba0b8ac53c45bc327112c53887e (diff)
ACPI: use acpi_device_hid() when possible
Use acpi_device_hid() rather than accessing acpi_device.pnp.hardware_id directly. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pnp/pnpacpi')
-rw-r--r--drivers/pnp/pnpacpi/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c
index c07fdb94d665..ff963d4dab46 100644
--- a/drivers/pnp/pnpacpi/core.c
+++ b/drivers/pnp/pnpacpi/core.c
@@ -234,7 +234,7 @@ static int __init acpi_pnp_match(struct device *dev, void *_pnp)
234 /* true means it matched */ 234 /* true means it matched */
235 return acpi->flags.hardware_id 235 return acpi->flags.hardware_id
236 && !acpi_get_physical_device(acpi->handle) 236 && !acpi_get_physical_device(acpi->handle)
237 && compare_pnp_id(pnp->id, acpi->pnp.hardware_id); 237 && compare_pnp_id(pnp->id, acpi_device_hid(acpi));
238} 238}
239 239
240static int __init acpi_pnp_find_device(struct device *dev, acpi_handle * handle) 240static int __init acpi_pnp_find_device(struct device *dev, acpi_handle * handle)