Merge tag 'pci-v4.20-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaa...
[linux-2.6-microblaze.git] / drivers / gpio / gpiolib-acpi.c
index 2b1a7b4..55b72fb 100644 (file)
@@ -1194,7 +1194,7 @@ int acpi_gpio_count(struct device *dev, const char *con_id)
 bool acpi_can_fallback_to_crs(struct acpi_device *adev, const char *con_id)
 {
        /* Never allow fallback if the device has properties */
-       if (adev->data.properties || adev->driver_gpios)
+       if (acpi_dev_has_props(adev) || adev->driver_gpios)
                return false;
 
        return con_id == NULL;