From: Javier Martinez Canillas Date: Wed, 15 Mar 2017 04:44:59 +0000 (-0300) Subject: iio: dac: max5821: Set .of_match_table to OF device ID table X-Git-Tag: v4.12-rc1~84^2~384^2~11 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=7373340367d8546910128ac301bd2c0d47e71e85;p=linux-2.6-block.git iio: dac: max5821: Set .of_match_table to OF device ID table The driver has a OF device ID table but the struct i2c_driver .of_match_table field is not set. Signed-off-by: Javier Martinez Canillas Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/dac/max5821.c b/drivers/iio/dac/max5821.c index 86e9e112f554..193fac3059a3 100644 --- a/drivers/iio/dac/max5821.c +++ b/drivers/iio/dac/max5821.c @@ -392,6 +392,7 @@ MODULE_DEVICE_TABLE(of, max5821_of_match); static struct i2c_driver max5821_driver = { .driver = { .name = "max5821", + .of_match_table = max5821_of_match, .pm = MAX5821_PM_OPS, }, .probe = max5821_probe,