linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [media] omap3isp: Fix module autoloading
@ 2015-09-16 23:31 Javier Martinez Canillas
  2015-09-17  6:12 ` Laurent Pinchart
  0 siblings, 1 reply; 2+ messages in thread
From: Javier Martinez Canillas @ 2015-09-16 23:31 UTC (permalink / raw)
  To: linux-kernel
  Cc: Sakari Ailus, Javier Martinez Canillas, Mauro Carvalho Chehab,
	Laurent Pinchart, linux-media

Platform drivers needs to export the OF id table and this be built
into the module or udev will not have the necessary information to
autoload the driver module when the device is registered via OF.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>

---

 drivers/media/platform/omap3isp/isp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c
index 56e683b19a73..2c2840650fb2 100644
--- a/drivers/media/platform/omap3isp/isp.c
+++ b/drivers/media/platform/omap3isp/isp.c
@@ -2509,6 +2509,7 @@ static const struct of_device_id omap3isp_of_table[] = {
 	{ .compatible = "ti,omap3-isp" },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, omap3isp_of_table);
 
 static struct platform_driver omap3isp_driver = {
 	.probe = isp_probe,
-- 
2.4.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] [media] omap3isp: Fix module autoloading
  2015-09-16 23:31 [PATCH] [media] omap3isp: Fix module autoloading Javier Martinez Canillas
@ 2015-09-17  6:12 ` Laurent Pinchart
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Pinchart @ 2015-09-17  6:12 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: linux-kernel, Sakari Ailus, Mauro Carvalho Chehab, linux-media

On Thursday 17 September 2015 01:31:38 Javier Martinez Canillas wrote:
> Platform drivers needs to export the OF id table and this be built
> into the module or udev will not have the necessary information to
> autoload the driver module when the device is registered via OF.
> 
> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
> 
>  drivers/media/platform/omap3isp/isp.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/media/platform/omap3isp/isp.c
> b/drivers/media/platform/omap3isp/isp.c index 56e683b19a73..2c2840650fb2
> 100644
> --- a/drivers/media/platform/omap3isp/isp.c
> +++ b/drivers/media/platform/omap3isp/isp.c
> @@ -2509,6 +2509,7 @@ static const struct of_device_id omap3isp_of_table[] =
> { { .compatible = "ti,omap3-isp" },
>  	{ },
>  };
> +MODULE_DEVICE_TABLE(of, omap3isp_of_table);
> 
>  static struct platform_driver omap3isp_driver = {
>  	.probe = isp_probe,

-- 
Regards,

Laurent Pinchart


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-17  6:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-16 23:31 [PATCH] [media] omap3isp: Fix module autoloading Javier Martinez Canillas
2015-09-17  6:12 ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).