Merge branch 'drm-next-3.15-wip' of git://people.freedesktop.org/~deathsimple/linux...
[firefly-linux-kernel-4.4.55.git] / drivers / i2c / busses / i2c-rcar.c
index 0282d4d42805fae9c2a6d68c3213bf0cab18f6f6..d4fa8eba6e9d2e40e11cb0ccba5ee64606dd8fff 100644 (file)
@@ -638,6 +638,7 @@ static const struct of_device_id rcar_i2c_dt_ids[] = {
        { .compatible = "renesas,i2c-r8a7778", .data = (void *)I2C_RCAR_GEN1 },
        { .compatible = "renesas,i2c-r8a7779", .data = (void *)I2C_RCAR_GEN1 },
        { .compatible = "renesas,i2c-r8a7790", .data = (void *)I2C_RCAR_GEN2 },
+       { .compatible = "renesas,i2c-r8a7791", .data = (void *)I2C_RCAR_GEN2 },
        {},
 };
 MODULE_DEVICE_TABLE(of, rcar_i2c_dt_ids);
@@ -691,7 +692,7 @@ static int rcar_i2c_probe(struct platform_device *pdev)
        adap                    = &priv->adap;
        adap->nr                = pdev->id;
        adap->algo              = &rcar_i2c_algo;
-       adap->class             = I2C_CLASS_HWMON | I2C_CLASS_SPD;
+       adap->class             = I2C_CLASS_HWMON | I2C_CLASS_SPD | I2C_CLASS_DEPRECATED;
        adap->retries           = 3;
        adap->dev.parent        = dev;
        adap->dev.of_node       = dev->of_node;