]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/i2c/i2c-core-base.c
Merge tag 'rtc-4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux
[linux.git] / drivers / i2c / i2c-core-base.c
index c89dac7fd2e7b793217119f2ccee849cf75ebcfe..56e46581b84bdb03eeb07ddaa8d83cec1aa76341 100644 (file)
@@ -353,10 +353,11 @@ static int i2c_device_probe(struct device *dev)
        }
 
        /*
-        * An I2C ID table is not mandatory, if and only if, a suitable Device
-        * Tree match table entry is supplied for the probing device.
+        * An I2C ID table is not mandatory, if and only if, a suitable OF
+        * or ACPI ID table is supplied for the probing device.
         */
        if (!driver->id_table &&
+           !i2c_acpi_match_device(dev->driver->acpi_match_table, client) &&
            !i2c_of_match_device(dev->driver->of_match_table, client))
                return -ENODEV;