Commit 2c2d24dc authored by Liao Chen's avatar Liao Chen Committed by Hans Verkuil
Browse files

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: default avatarLiao Chen <liaochen4@huawei.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 99d30e2f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 = {