Skip to content

Commit 2c2d24d

Browse files
Liao ChenHans Verkuil
authored andcommitted
media: i2c: mt9v111: Enable module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Liao Chen <liaochen4@huawei.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
1 parent 99d30e2 commit 2c2d24d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/media/i2c/mt9v111.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,7 @@ static const struct of_device_id mt9v111_of_match[] = {
12651265
{ .compatible = "aptina,mt9v111", },
12661266
{ /* sentinel */ },
12671267
};
1268+
MODULE_DEVICE_TABLE(of, mt9v111_of_match);
12681269

12691270
static struct i2c_driver mt9v111_driver = {
12701271
.driver = {

0 commit comments

Comments
 (0)