On Mon, May 19, 2014 at 01:56:33AM +0200, Rafael J. Wysocki wrote: > On Saturday, May 17, 2014 02:24:23 PM Mark Brown wrote: > > That's much less invasive than making new APIs. > But for drivers that call of_get_something() directly I don't see any other > sensible way forward. Otherwise each of them will need to do something like > if (dev->of_node) > use of_get_X() > else if (ACPI_COMPANION(dev)) > use acpi_get_X() > else > use black magic > possibly in several places. OK, but that's basically just the property reading cases (unless we're doing something fancy involving phandles which is a bit more fun and less clear that it'll Just Work) - it seems a bit of a shame to have to churn all the APIs to do it.