ACPI / bus: Remove checks in acpi_get_match_data()
PATCH 1/4 ACPI / bus: Remove checks in acpi_get_match_data()
Quoted 27 lines · Andy Shevchenko
Quoted 15 lines · Rafael J. Wysocki
Quoted 13 lines · Sinan Kaya
Quoted 11 lines · Andy Shevchenko
As well as its sibling
of_device_get_match_data()has no such checks,
no need to do it inacpi_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.Quoted 7 lines
Quoted 5 lines
We talked about this during review.
of_match_device()does all the checking for the OF part. ACPI doesn't have
any checks.Yeah, this patch is just plain incorrect AFAICS.
I don't see how check
dev->driveris implemented on OF side then
Quoted 6 lines
of_device_get_match_data()which is called byof_fwnode_device_get_match_data()has dereferenceddev->driverw/o any check.I can't agree that the patch is plain incorrect, if I didn't miss anything.
Sorry, i should have been more specific. I was talkimg about match_data not driver.
I agree that driver check is redundant.
---
To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html