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>
This commit is contained in:
@ -234,7 +234,7 @@ static int __init acpi_pnp_match(struct device *dev, void *_pnp)
|
||||
/* true means it matched */
|
||||
return acpi->flags.hardware_id
|
||||
&& !acpi_get_physical_device(acpi->handle)
|
||||
&& compare_pnp_id(pnp->id, acpi->pnp.hardware_id);
|
||||
&& compare_pnp_id(pnp->id, acpi_device_hid(acpi));
|
||||
}
|
||||
|
||||
static int __init acpi_pnp_find_device(struct device *dev, acpi_handle * handle)
|
||||
|
Reference in New Issue
Block a user