OMAPDSS: use platform_driver_probe for dsi/hdmi/rfbi/venc/dpi/sdi
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 7 Mar 2012 10:53:38 +0000 (12:53 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 May 2012 11:44:52 +0000 (14:44 +0300)
Now that the core.c doesn't fail if output driver's init fails, we can
change the uses of platform_driver_register to platform_driver_probe.
This will allow us to use __init in the following patches.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dpi.c
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/hdmi.c
drivers/video/omap2/dss/rfbi.c
drivers/video/omap2/dss/sdi.c
drivers/video/omap2/dss/venc.c

index 0bb2c48db81723fd39637b1f08f52b94c2f42498..9316fd138be19e28973ee15a3365aa7c92818f63 100644 (file)
@@ -376,7 +376,6 @@ static int omap_dpi_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver omap_dpi_driver = {
-       .probe          = omap_dpi_probe,
        .remove         = omap_dpi_remove,
        .driver         = {
                .name   = "omapdss_dpi",
@@ -386,7 +385,7 @@ static struct platform_driver omap_dpi_driver = {
 
 int dpi_init_platform_driver(void)
 {
-       return platform_driver_register(&omap_dpi_driver);
+       return platform_driver_probe(&omap_dpi_driver, omap_dpi_probe);
 }
 
 void dpi_uninit_platform_driver(void)
index d5d80f92ce35c8c1dcd8a5a3121b6d1c6c9bff7e..ce9a78acbcbbb735aff0ec83ee078e065dac6fb8 100644 (file)
@@ -4768,7 +4768,6 @@ static const struct dev_pm_ops dsi_pm_ops = {
 };
 
 static struct platform_driver omap_dsihw_driver = {
-       .probe          = omap_dsihw_probe,
        .remove         = omap_dsihw_remove,
        .driver         = {
                .name   = "omapdss_dsi",
@@ -4779,7 +4778,7 @@ static struct platform_driver omap_dsihw_driver = {
 
 int dsi_init_platform_driver(void)
 {
-       return platform_driver_register(&omap_dsihw_driver);
+       return platform_driver_probe(&omap_dsihw_driver, omap_dsihw_probe);
 }
 
 void dsi_uninit_platform_driver(void)
index e0ab10808a7859b1a5b6cad4d4fc7628ca23eea5..d955491ed3cd6469d1bcf4047c38ce2979ca6db9 100644 (file)
@@ -872,7 +872,6 @@ static const struct dev_pm_ops hdmi_pm_ops = {
 };
 
 static struct platform_driver omapdss_hdmihw_driver = {
-       .probe          = omapdss_hdmihw_probe,
        .remove         = omapdss_hdmihw_remove,
        .driver         = {
                .name   = "omapdss_hdmi",
@@ -883,7 +882,7 @@ static struct platform_driver omapdss_hdmihw_driver = {
 
 int hdmi_init_platform_driver(void)
 {
-       return platform_driver_register(&omapdss_hdmihw_driver);
+       return platform_driver_probe(&omapdss_hdmihw_driver, omapdss_hdmihw_probe);
 }
 
 void hdmi_uninit_platform_driver(void)
index 6adbea97332ecbda2318f0d9a4b0bc537d9766e0..f18d726b61268c4bc5a8c64736b3408bf63c73e8 100644 (file)
@@ -1015,7 +1015,6 @@ static const struct dev_pm_ops rfbi_pm_ops = {
 };
 
 static struct platform_driver omap_rfbihw_driver = {
-       .probe          = omap_rfbihw_probe,
        .remove         = omap_rfbihw_remove,
        .driver         = {
                .name   = "omapdss_rfbi",
@@ -1026,7 +1025,7 @@ static struct platform_driver omap_rfbihw_driver = {
 
 int rfbi_init_platform_driver(void)
 {
-       return platform_driver_register(&omap_rfbihw_driver);
+       return platform_driver_probe(&omap_rfbihw_driver, omap_rfbihw_probe);
 }
 
 void rfbi_uninit_platform_driver(void)
index 9e3ee87ffc9ceaa974a770aa897c726498b8b28b..b154d28b1614a13e7a16380d1c982547753252f5 100644 (file)
@@ -187,7 +187,6 @@ static int omap_sdi_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver omap_sdi_driver = {
-       .probe          = omap_sdi_probe,
        .remove         = omap_sdi_remove,
        .driver         = {
                .name   = "omapdss_sdi",
@@ -197,7 +196,7 @@ static struct platform_driver omap_sdi_driver = {
 
 int sdi_init_platform_driver(void)
 {
-       return platform_driver_register(&omap_sdi_driver);
+       return platform_driver_probe(&omap_sdi_driver, omap_sdi_probe);
 }
 
 void sdi_uninit_platform_driver(void)
index ebb6ec60e9a86ab55a831207f49352cfe61f7e53..1756b4fa7c67c65d3a493a1b2f495be764932a68 100644 (file)
@@ -929,7 +929,6 @@ static const struct dev_pm_ops venc_pm_ops = {
 };
 
 static struct platform_driver omap_venchw_driver = {
-       .probe          = omap_venchw_probe,
        .remove         = omap_venchw_remove,
        .driver         = {
                .name   = "omapdss_venc",
@@ -943,7 +942,7 @@ int venc_init_platform_driver(void)
        if (cpu_is_omap44xx())
                return 0;
 
-       return platform_driver_register(&omap_venchw_driver);
+       return platform_driver_probe(&omap_venchw_driver, omap_venchw_probe);
 }
 
 void venc_uninit_platform_driver(void)