mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ACPI: remove acpi_device.flags.hardware_id
Every acpi_device has at least one ID (if there's no _HID or _CID, we give it a synthetic or default ID). So there's no longer a need to check whether an ID exists; we can just use it. Signed-off-by: Bjorn Helgaas <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
b2972f8750
commit
1131b938f0
3 changed files with 15 additions and 28 deletions
|
|
@ -230,8 +230,7 @@ static int __init acpi_pnp_match(struct device *dev, void *_pnp)
|
|||
struct pnp_dev *pnp = _pnp;
|
||||
|
||||
/* true means it matched */
|
||||
return acpi->flags.hardware_id
|
||||
&& !acpi_get_physical_device(acpi->handle)
|
||||
return !acpi_get_physical_device(acpi->handle)
|
||||
&& compare_pnp_id(pnp->id, acpi_device_hid(acpi));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue