diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-03-07 12:53:38 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-11 14:44:52 +0300 |
commit | 61055d4b2eb164cb81af1e5940a31c7f2e53757e (patch) | |
tree | e79580e110c1a73b8a917d3ee50f478026069722 /drivers/video/omap2 | |
parent | e40402cf182e798fd71824f4ad02fb51ce599bb2 (diff) | |
download | linux-61055d4b2eb164cb81af1e5940a31c7f2e53757e.tar.bz2 |
OMAPDSS: use platform_driver_probe for dsi/hdmi/rfbi/venc/dpi/sdi
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>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r-- | drivers/video/omap2/dss/dpi.c | 3 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 3 | ||||
-rw-r--r-- | drivers/video/omap2/dss/hdmi.c | 3 | ||||
-rw-r--r-- | drivers/video/omap2/dss/rfbi.c | 3 | ||||
-rw-r--r-- | drivers/video/omap2/dss/sdi.c | 3 | ||||
-rw-r--r-- | drivers/video/omap2/dss/venc.c | 3 |
6 files changed, 6 insertions, 12 deletions
diff --git a/drivers/video/omap2/dss/dpi.c b/drivers/video/omap2/dss/dpi.c index 0bb2c48db817..9316fd138be1 100644 --- a/drivers/video/omap2/dss/dpi.c +++ b/drivers/video/omap2/dss/dpi.c @@ -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) diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index d5d80f92ce35..ce9a78acbcbb 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c @@ -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) diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c index e0ab10808a78..d955491ed3cd 100644 --- a/drivers/video/omap2/dss/hdmi.c +++ b/drivers/video/omap2/dss/hdmi.c @@ -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) diff --git a/drivers/video/omap2/dss/rfbi.c b/drivers/video/omap2/dss/rfbi.c index 6adbea97332e..f18d726b6126 100644 --- a/drivers/video/omap2/dss/rfbi.c +++ b/drivers/video/omap2/dss/rfbi.c @@ -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) diff --git a/drivers/video/omap2/dss/sdi.c b/drivers/video/omap2/dss/sdi.c index 9e3ee87ffc9c..b154d28b1614 100644 --- a/drivers/video/omap2/dss/sdi.c +++ b/drivers/video/omap2/dss/sdi.c @@ -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) diff --git a/drivers/video/omap2/dss/venc.c b/drivers/video/omap2/dss/venc.c index ebb6ec60e9a8..1756b4fa7c67 100644 --- a/drivers/video/omap2/dss/venc.c +++ b/drivers/video/omap2/dss/venc.c @@ -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) |