diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2019-01-08 12:51:42 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-01-25 10:49:50 -0200 |
commit | 1e57e4ce90f4190b989670fe1b161995b5b5f333 (patch) | |
tree | bde6c231fc985bf7ed48edd1f7cfc8fc6058d88c /drivers/media/i2c/mt9m001.c | |
parent | 9f4f37b03e3c45ef343044816fa33b99c7200319 (diff) | |
download | linux-stable-1e57e4ce90f4190b989670fe1b161995b5b5f333.tar.gz linux-stable-1e57e4ce90f4190b989670fe1b161995b5b5f333.tar.bz2 linux-stable-1e57e4ce90f4190b989670fe1b161995b5b5f333.zip |
media: mt9m001: add of_match_table
Add of_match_table for the MT9M001 CMOS image sensor.
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/mt9m001.c')
-rw-r--r-- | drivers/media/i2c/mt9m001.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/i2c/mt9m001.c b/drivers/media/i2c/mt9m001.c index dc6cf46ed8d0..3864d884b8c3 100644 --- a/drivers/media/i2c/mt9m001.c +++ b/drivers/media/i2c/mt9m001.c @@ -738,9 +738,16 @@ static const struct i2c_device_id mt9m001_id[] = { }; MODULE_DEVICE_TABLE(i2c, mt9m001_id); +static const struct of_device_id mt9m001_of_match[] = { + { .compatible = "onnn,mt9m001", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, mt9m001_of_match); + static struct i2c_driver mt9m001_i2c_driver = { .driver = { .name = "mt9m001", + .of_match_table = mt9m001_of_match, }, .probe = mt9m001_probe, .remove = mt9m001_remove, |