ASoC: max98090: Add of_match_table
authorChenZhen <zhen1.chen@samsung.com>
Tue, 25 Mar 2014 07:52:50 +0000 (15:52 +0800)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:23 +0000 (11:47 +0900)
It's necessary to add of_match_table to match driver.

Change-Id: I7c09aef9a3f54180041398009b9141142de54ea4
Signed-off-by: ChenZhen <zhen1.chen@samsung.com>
sound/soc/codecs/max98090.c

index 76bfeb3..34c60bc 100644 (file)
@@ -2371,11 +2371,18 @@ static const struct i2c_device_id max98090_i2c_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, max98090_i2c_id);
 
+static const struct of_device_id max98090_of_match[] = {
+       { .compatible = "maxim,max98090", },
+       { },
+};
+MODULE_DEVICE_TABLE(of, max98090_of_match);
+
 static struct i2c_driver max98090_i2c_driver = {
        .driver = {
                .name = "max98090",
                .owner = THIS_MODULE,
                .pm = &max98090_pm,
+               .of_match_table = max98090_of_match,
        },
        .probe  = max98090_i2c_probe,
        .remove = max98090_i2c_remove,