return adev ? adev->handle : NULL;
}
- #define ACPI_COMPANION(dev) acpi_node((dev)->fwnode)
+ #define ACPI_COMPANION(dev) to_acpi_node((dev)->fwnode)
#define ACPI_COMPANION_SET(dev, adev) set_primary_fwnode(dev, (adev) ? \
acpi_fwnode_handle(adev) : NULL)
#define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
extern bool acpi_osi_is_win8(void);
#ifdef CONFIG_ACPI_NUMA
+int acpi_map_pxm_to_online_node(int pxm);
int acpi_get_node(acpi_handle handle);
#else
+static inline int acpi_map_pxm_to_online_node(int pxm)
+{
+ return 0;
+}
static inline int acpi_get_node(acpi_handle handle)
{
return 0;
return false;
}
- static inline struct acpi_device *acpi_node(struct fwnode_handle *fwnode)
+ static inline struct acpi_device *to_acpi_node(struct fwnode_handle *fwnode)
{
return NULL;
}