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 <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent 99d30e2 commit 2c2d24d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)