mfd: cros_ec: Instantiate the CrOS USB PD logger driver
[linux-2.6-microblaze.git] / drivers / mfd / retu-mfd.c
index d4c114a..e7d27b7 100644 (file)
@@ -302,15 +302,23 @@ static int retu_remove(struct i2c_client *i2c)
 }
 
 static const struct i2c_device_id retu_id[] = {
-       { "retu-mfd", 0 },
-       { "tahvo-mfd", 0 },
+       { "retu", 0 },
+       { "tahvo", 0 },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, retu_id);
 
+static const struct of_device_id retu_of_match[] = {
+       { .compatible = "nokia,retu" },
+       { .compatible = "nokia,tahvo" },
+       { }
+};
+MODULE_DEVICE_TABLE(of, retu_of_match);
+
 static struct i2c_driver retu_driver = {
        .driver         = {
                .name = "retu-mfd",
+               .of_match_table = retu_of_match,
        },
        .probe          = retu_probe,
        .remove         = retu_remove,