Message ID | 20240829125203.539977-2-liaochen4@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | media: i2c: mt9v111: workaround | expand |
Hi Liao, Thank you for the patch. On Thu, Aug 29, 2024 at 12:52:02PM +0000, Liao Chen wrote: > 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> Sakari, I expect you will merge this series through your tree. > --- > drivers/media/i2c/mt9v111.c | 1 + > 1 file changed, 1 insertion(+) > > 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 = {
On Thu, Aug 29, 2024 at 04:47:08PM +0300, Laurent Pinchart wrote: > Hi Liao, > > Thank you for the patch. > > On Thu, Aug 29, 2024 at 12:52:02PM +0000, Liao Chen wrote: > > 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> > > Sakari, I expect you will merge this series through your tree. Yes, they were in my previous PR to Hans and in media stage tree now.
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 = {
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> --- drivers/media/i2c/mt9v111.c | 1 + 1 file changed, 1 insertion(+)