Skip to contentSkip to conversation

mx2_camera: use module_platform_driver_probe()

PATCH In review Fabio Porcedda 2 participants 5 messages Mar 18, 2013 – Apr 4, 2013 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mx2_camera: use module_platform_driver_probe()

The commit 39793c6 "[media] mx2_camera: Convert it to platform driver" used module_platform_driver() to make code smaller,
but since the driver used platform_driver_probe is more appropriate to use module_platform_driver_probe().

Cc Fabio Estevam <[email protected]>
Cc Guennadi Liakhovetski <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/platform/soc_camera/mx2_camera.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/platform/soc_camera/mx2_camera.c +1 -2
index ffba7d9..848dff9 100644
@@ -1619,10 +1619,9 @@ static struct platform_driver mx2_camera_driver = {
 	},
 	.id_table	= mx2_camera_devtype,
 	.remove		= mx2_camera_remove,
-	.probe		= mx2_camera_probe,
 };
 
-module_platform_driver(mx2_camera_driver);
+module_platform_driver_probe(mx2_camera_driver, mx2_camera_probe);
 
 MODULE_DESCRIPTION("i.MX27 SoC Camera Host driver");
 MODULE_AUTHOR("Sascha Hauer <[email protected]>");
Signature · 1 line
1.8.2
#1 lore raw

Hi Fabio

Quoted 9 lines · Fabio Porcedda

The commit 39793c6 "[media] mx2_camera: Convert it to platform driver" used module_platform_driver() to make code smaller,
but since the driver used platform_driver_probe is more appropriate to use module_platform_driver_probe().

Cc Fabio Estevam <[email protected]>
Cc Guennadi Liakhovetski <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>

Thanks, will queue for 3.10.

Guennadi

Quoted 23 lines
---
 drivers/media/platform/soc_camera/mx2_camera.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/platform/soc_camera/mx2_camera.c +1 -2
index ffba7d9..848dff9 100644
@@ -1619,10 +1619,9 @@ static struct platform_driver mx2_camera_driver = {
 	},
 	.id_table	= mx2_camera_devtype,
 	.remove		= mx2_camera_remove,
-	.probe		= mx2_camera_probe,
 };
 
-module_platform_driver(mx2_camera_driver);
+module_platform_driver_probe(mx2_camera_driver, mx2_camera_probe);
 
 MODULE_DESCRIPTION("i.MX27 SoC Camera Host driver");
 MODULE_AUTHOR("Sascha Hauer <[email protected]>");
Signature · 1 line
1.8.2

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

#2 lore raw
Quoted 9 lines · Guennadi Liakhovetski

Hi Fabio

Quoted 5 lines · Fabio Porcedda

The commit 39793c6 "[media] mx2_camera: Convert it to platform driver" used module_platform_driver() to make code smaller,
but since the driver used platform_driver_probe is more appropriate to use module_platform_driver_probe().

Quoted 6 lines
Quoted 4 lines
Cc Fabio Estevam <[email protected]>
Cc Guennadi Liakhovetski <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>

Thanks, will queue for 3.10.

Thanks for taking it.
In which repository/branch is it?
This commit is not in linux-next or in
git://linuxtv.org/mchehab/media-next.git yet.

Best regards
--
Fabio Porcedda

Quoted 30 lines

Guennadi

Quoted 21 lines
---
 drivers/media/platform/soc_camera/mx2_camera.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/platform/soc_camera/mx2_camera.c +1 -3
index ffba7d9..848dff9 100644
@@ -1619,10 +1619,9 @@ static struct platform_driver mx2_camera_driver = {
      },
      .id_table       = mx2_camera_devtype,
      .remove         = mx2_camera_remove,
-     .probe          = mx2_camera_probe,
 };
 
-module_platform_driver(mx2_camera_driver);
+module_platform_driver_probe(mx2_camera_driver, mx2_camera_probe);
 
 MODULE_DESCRIPTION("i.MX27 SoC Camera Host driver");
 MODULE_AUTHOR("Sascha Hauer <[email protected]>");
--
Quoted 2 lines

1.8.2

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

#3 lore raw
Quoted 16 lines · Fabio Porcedda
Quoted 14 lines · Guennadi Liakhovetski

Hi Fabio

Quoted 9 lines · Fabio Porcedda

The commit 39793c6 "[media] mx2_camera: Convert it to platform driver" used module_platform_driver() to make code smaller,
but since the driver used platform_driver_probe is more appropriate to use module_platform_driver_probe().

Cc Fabio Estevam <[email protected]>
Cc Guennadi Liakhovetski <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Quoted 6 lines
Quoted 1 line

Thanks, will queue for 3.10.

Thanks for taking it.
In which repository/branch is it?
This commit is not in linux-next or in
git://linuxtv.org/mchehab/media-next.git yet.

Not yet. I'm preparing a branch locally to push to my repository on git.linuxtv.org. I'll do that within a day or two, if no objections emerge. Then I'll send a pull request to Mauro, then a couple of days later he'll pull from my tree, then patches will appear in -next.

Thanks
Guennadi

Quoted 36 lines

Best regards
--
Fabio Porcedda

Quoted 30 lines

Guennadi

Quoted 21 lines
---
 drivers/media/platform/soc_camera/mx2_camera.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/platform/soc_camera/mx2_camera.c +1 -3
index ffba7d9..848dff9 100644
@@ -1619,10 +1619,9 @@ static struct platform_driver mx2_camera_driver = {
      },
      .id_table       = mx2_camera_devtype,
      .remove         = mx2_camera_remove,
-     .probe          = mx2_camera_probe,
 };
 
-module_platform_driver(mx2_camera_driver);
+module_platform_driver_probe(mx2_camera_driver, mx2_camera_probe);
 
 MODULE_DESCRIPTION("i.MX27 SoC Camera Host driver");
 MODULE_AUTHOR("Sascha Hauer <[email protected]>");
--
Quoted 2 lines

1.8.2

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

#4 lore raw
Quoted 25 lines · Guennadi Liakhovetski
Quoted 16 lines · Fabio Porcedda
Quoted 14 lines · Guennadi Liakhovetski

Hi Fabio

Quoted 9 lines · Fabio Porcedda

The commit 39793c6 "[media] mx2_camera: Convert it to platform driver" used module_platform_driver() to make code smaller,
but since the driver used platform_driver_probe is more appropriate to use module_platform_driver_probe().

Cc Fabio Estevam <[email protected]>
Cc Guennadi Liakhovetski <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Quoted 6 lines
Quoted 1 line

Thanks, will queue for 3.10.

Thanks for taking it.
In which repository/branch is it?
This commit is not in linux-next or in
git://linuxtv.org/mchehab/media-next.git yet.

Quoted 4 lines

Not yet. I'm preparing a branch locally to push to my repository on git.linuxtv.org. I'll do that within a day or two, if no objections emerge. Then I'll send a pull request to Mauro, then a couple of days later he'll pull from my tree, then patches will appear in -next.

Thanks.

Regards
Fabio Porcedda

Quoted 40 lines

Thanks
Guennadi

Quoted 36 lines

Best regards
--
Fabio Porcedda

Quoted 30 lines

Guennadi

Quoted 21 lines
---
 drivers/media/platform/soc_camera/mx2_camera.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/platform/soc_camera/mx2_camera.c +1 -3
index ffba7d9..848dff9 100644
@@ -1619,10 +1619,9 @@ static struct platform_driver mx2_camera_driver = {
      },
      .id_table       = mx2_camera_devtype,
      .remove         = mx2_camera_remove,
-     .probe          = mx2_camera_probe,
 };
 
-module_platform_driver(mx2_camera_driver);
+module_platform_driver_probe(mx2_camera_driver, mx2_camera_probe);
 
 MODULE_DESCRIPTION("i.MX27 SoC Camera Host driver");
 MODULE_AUTHOR("Sascha Hauer <[email protected]>");
--
Quoted 2 lines

1.8.2

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

Quoted 4 lines

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

--
Fabio Porcedda