|
@@ -168,7 +168,7 @@ int acpi_bind_one(struct device *dev, struct acpi_device *acpi_dev)
|
|
|
unsigned int node_id;
|
|
|
int retval = -EINVAL;
|
|
|
|
|
|
- if (ACPI_COMPANION(dev)) {
|
|
|
+ if (has_acpi_companion(dev)) {
|
|
|
if (acpi_dev) {
|
|
|
dev_warn(dev, "ACPI companion already set\n");
|
|
|
return -EINVAL;
|
|
@@ -220,7 +220,7 @@ int acpi_bind_one(struct device *dev, struct acpi_device *acpi_dev)
|
|
|
list_add(&physical_node->node, physnode_list);
|
|
|
acpi_dev->physical_node_count++;
|
|
|
|
|
|
- if (!ACPI_COMPANION(dev))
|
|
|
+ if (!has_acpi_companion(dev))
|
|
|
ACPI_COMPANION_SET(dev, acpi_dev);
|
|
|
|
|
|
acpi_physnode_link_name(physical_node_name, node_id);
|