On Tuesday, August 04, 2015 04:01:59 PM David Daney wrote:Yes, you are right. We should use:
From: Tomasz Nowicki <tomasz.nowicki@xxxxxxxxxx>
Fixes the following build error when building drivers as modules:
ERROR: "acpi_dev_prop_read_single" [drivers/net/phy/mdio-octeon.ko] undefined!
ERROR: "acpi_dev_prop_read_single" [drivers/net/ethernet/cavium/thunder/thunder_bgx.ko] undefined!
Can you please tell me why the drivers in question use that function
directly, although they aren't supposed to?
Clearly, their authors had not tried to build them as modules or they
would have noticed the problem at the development stage already.
What would be wrong with using the generic device properties API instead?