ACPI: IORT: Handle device properties with software node API
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 11 May 2021 12:55:28 +0000 (15:55 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 17 May 2021 14:33:48 +0000 (16:33 +0200)
The older device property API is going to be removed.
Replacing the device_add_properties() call with software
node API equivalent device_create_managed_software_node().

Fixes: 434b73e61cc6 ("iommu/arm-smmu-v3: Use device properties for pasid-num-bits")
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/arm64/iort.c

index 3912a1f..e34937e 100644 (file)
@@ -976,7 +976,7 @@ static void iort_named_component_init(struct device *dev,
                                      FIELD_GET(ACPI_IORT_NC_PASID_BITS,
                                                nc->node_flags));
 
-       if (device_add_properties(dev, props))
+       if (device_create_managed_software_node(dev, props, NULL))
                dev_warn(dev, "Could not add device properties\n");
 }