aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiao Chen <[email protected]>2024-08-29 12:52:02 +0000
committerHans Verkuil <[email protected]>2024-08-31 09:40:44 +0200
commit2c2d24dc5943da93561663d245d96cf6f8fe2691 (patch)
tree8338dd15c5d8e021ceca52dff4cd00eb6f1a5e9f
parent99d30e2fdea4086be4e66e2deb10de854b547ab8 (diff)
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]>
-rw-r--r--drivers/media/i2c/mt9v111.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/mt9v111.c b/drivers/media/i2c/mt9v111.c
index b0b98ed3c150..b6a2623798c5 100644
--- a/drivers/media/i2c/mt9v111.c
+++ b/drivers/media/i2c/mt9v111.c
@@ -1265,6 +1265,7 @@ static const struct of_device_id mt9v111_of_match[] = {
{ .compatible = "aptina,mt9v111", },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, mt9v111_of_match);
static struct i2c_driver mt9v111_driver = {
.driver = {