Skip to contentSkip to conversation

ACPI / bus: Remove checks in acpi_get_match_data()

PATCH New Rafael J. Wysocki 1 participant 1 message Feb 5, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 3/6 ACPI / bus: Remove checks in acpi_get_match_data()

Quoted 28 lines · CET Andy Shevchenko
Quoted 27 lines · Rafael J. Wysocki
Quoted 24 lines · Andy Shevchenko
Quoted 13 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, since __acpi_match_device() does check input parameter there
is
no need to duplicate it outside.

Quoted 7 lines
Fixes 80212a162329 ("ACPI / bus: Introduce acpi_get_match_data()

function")

Cc Sinan Kaya <[email protected]>
Cc Sakari Ailus <[email protected]>
Cc Vinod Koul <[email protected]>

rhaps I have to add that this conditional prevents device_get_match_data() to work on PRP0001 devices AFAIU.

Quoted 8 lines
Quoted 1 line

Yes, please.

OK.

Quoted 1 line

I'm also not sure if the Fixes: tag is really applicable to this.

We can of course drop it, I put it here in a hope that this series would be material to v4.16-rc2 to fix an introduced API.

I can still take it for -rc1 even if ready, these tags aren't necessary for that.
---
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