Skip to contentSkip to conversation

ACPI / bus: Remove checks in acpi_get_match_data()

PATCH New Sinan Kaya 1 participant 1 message Jan 31, 2018

Subsystems (2)
lore
Share & tools
lore

Sinan Kaya

author
#0 lore raw

PATCH 1/4 ACPI / bus: Remove checks in acpi_get_match_data()

Quoted 8 lines · Andy Shevchenko

As well as its sibling of_device_get_match_data() has no such checks, no need to do it in acpi_get_match_data().

First of all, we are not supposed to call fwnode API like this without driver attached.

Second, if pure OF driver calls this function, it's weird to have ACPI companion without ACPI ID in this case.

We talked about this during review.

of_match_device() does all the checking for the OF part. ACPI doesn't have any checks.