From: Andrzej Hajda Date: Fri, 27 Sep 2013 07:27:46 +0000 (+0200) Subject: mfd: max77693: Added device tree support X-Git-Tag: v3.13-rc1~66^2~4^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4657185c3c6d928a07185f63f3558d9483e09d7e;p=profile%2Fivi%2Fkernel-x86-ivi.git mfd: max77693: Added device tree support This patch adds only of_match_table. There are no device specific properties. Reviewed-by: Sylwester Nawrocki Signed-off-by: Andrzej Hajda Signed-off-by: Kyungmin Park Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c index 27f5da3..4d81ed2 100644 --- a/drivers/mfd/max77693.c +++ b/drivers/mfd/max77693.c @@ -225,11 +225,19 @@ static const struct dev_pm_ops max77693_pm = { .resume = max77693_resume, }; +#ifdef CONFIG_OF +static struct of_device_id max77693_dt_match[] = { + { .compatible = "maxim,max77693" }, + {}, +}; +#endif + static struct i2c_driver max77693_i2c_driver = { .driver = { .name = "max77693", .owner = THIS_MODULE, .pm = &max77693_pm, + .of_match_table = of_match_ptr(max77693_dt_match), }, .probe = max77693_i2c_probe, .remove = max77693_i2c_remove,