]> www.infradead.org Git - linux.git/commitdiff
media: i2c: mt9v111: Enable module autoloading
authorLiao Chen <liaochen4@huawei.com>
Thu, 29 Aug 2024 12:52:02 +0000 (12:52 +0000)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 31 Aug 2024 07:40:44 +0000 (09:40 +0200)
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>
drivers/media/i2c/mt9v111.c

index b0b98ed3c1502fddf81f5353f7861154ca668e3c..b6a2623798c5f4ae6f695cd10552aa47f6d57c90 100644 (file)
@@ -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 = {