diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-03-07 05:53:38 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-11 07:44:52 -0400 |
commit | 61055d4b2eb164cb81af1e5940a31c7f2e53757e (patch) | |
tree | e79580e110c1a73b8a917d3ee50f478026069722 | |
parent | e40402cf182e798fd71824f4ad02fb51ce599bb2 (diff) |
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>
-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) | |||
376 | } | 376 | } |
377 | 377 | ||
378 | static struct platform_driver omap_dpi_driver = { | 378 | static struct platform_driver omap_dpi_driver = { |
379 | .probe = omap_dpi_probe, | ||
380 | .remove = omap_dpi_remove, | 379 | .remove = omap_dpi_remove, |
381 | .driver = { | 380 | .driver = { |
382 | .name = "omapdss_dpi", | 381 | .name = "omapdss_dpi", |
@@ -386,7 +385,7 @@ static struct platform_driver omap_dpi_driver = { | |||
386 | 385 | ||
387 | int dpi_init_platform_driver(void) | 386 | int dpi_init_platform_driver(void) |
388 | { | 387 | { |
389 | return platform_driver_register(&omap_dpi_driver); | 388 | return platform_driver_probe(&omap_dpi_driver, omap_dpi_probe); |
390 | } | 389 | } |
391 | 390 | ||
392 | void dpi_uninit_platform_driver(void) | 391 | 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 = { | |||
4768 | }; | 4768 | }; |
4769 | 4769 | ||
4770 | static struct platform_driver omap_dsihw_driver = { | 4770 | static struct platform_driver omap_dsihw_driver = { |
4771 | .probe = omap_dsihw_probe, | ||
4772 | .remove = omap_dsihw_remove, | 4771 | .remove = omap_dsihw_remove, |
4773 | .driver = { | 4772 | .driver = { |
4774 | .name = "omapdss_dsi", | 4773 | .name = "omapdss_dsi", |
@@ -4779,7 +4778,7 @@ static struct platform_driver omap_dsihw_driver = { | |||
4779 | 4778 | ||
4780 | int dsi_init_platform_driver(void) | 4779 | int dsi_init_platform_driver(void) |
4781 | { | 4780 | { |
4782 | return platform_driver_register(&omap_dsihw_driver); | 4781 | return platform_driver_probe(&omap_dsihw_driver, omap_dsihw_probe); |
4783 | } | 4782 | } |
4784 | 4783 | ||
4785 | void dsi_uninit_platform_driver(void) | 4784 | 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 = { | |||
872 | }; | 872 | }; |
873 | 873 | ||
874 | static struct platform_driver omapdss_hdmihw_driver = { | 874 | static struct platform_driver omapdss_hdmihw_driver = { |
875 | .probe = omapdss_hdmihw_probe, | ||
876 | .remove = omapdss_hdmihw_remove, | 875 | .remove = omapdss_hdmihw_remove, |
877 | .driver = { | 876 | .driver = { |
878 | .name = "omapdss_hdmi", | 877 | .name = "omapdss_hdmi", |
@@ -883,7 +882,7 @@ static struct platform_driver omapdss_hdmihw_driver = { | |||
883 | 882 | ||
884 | int hdmi_init_platform_driver(void) | 883 | int hdmi_init_platform_driver(void) |
885 | { | 884 | { |
886 | return platform_driver_register(&omapdss_hdmihw_driver); | 885 | return platform_driver_probe(&omapdss_hdmihw_driver, omapdss_hdmihw_probe); |
887 | } | 886 | } |
888 | 887 | ||
889 | void hdmi_uninit_platform_driver(void) | 888 | 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 = { | |||
1015 | }; | 1015 | }; |
1016 | 1016 | ||
1017 | static struct platform_driver omap_rfbihw_driver = { | 1017 | static struct platform_driver omap_rfbihw_driver = { |
1018 | .probe = omap_rfbihw_probe, | ||
1019 | .remove = omap_rfbihw_remove, | 1018 | .remove = omap_rfbihw_remove, |
1020 | .driver = { | 1019 | .driver = { |
1021 | .name = "omapdss_rfbi", | 1020 | .name = "omapdss_rfbi", |
@@ -1026,7 +1025,7 @@ static struct platform_driver omap_rfbihw_driver = { | |||
1026 | 1025 | ||
1027 | int rfbi_init_platform_driver(void) | 1026 | int rfbi_init_platform_driver(void) |
1028 | { | 1027 | { |
1029 | return platform_driver_register(&omap_rfbihw_driver); | 1028 | return platform_driver_probe(&omap_rfbihw_driver, omap_rfbihw_probe); |
1030 | } | 1029 | } |
1031 | 1030 | ||
1032 | void rfbi_uninit_platform_driver(void) | 1031 | 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) | |||
187 | } | 187 | } |
188 | 188 | ||
189 | static struct platform_driver omap_sdi_driver = { | 189 | static struct platform_driver omap_sdi_driver = { |
190 | .probe = omap_sdi_probe, | ||
191 | .remove = omap_sdi_remove, | 190 | .remove = omap_sdi_remove, |
192 | .driver = { | 191 | .driver = { |
193 | .name = "omapdss_sdi", | 192 | .name = "omapdss_sdi", |
@@ -197,7 +196,7 @@ static struct platform_driver omap_sdi_driver = { | |||
197 | 196 | ||
198 | int sdi_init_platform_driver(void) | 197 | int sdi_init_platform_driver(void) |
199 | { | 198 | { |
200 | return platform_driver_register(&omap_sdi_driver); | 199 | return platform_driver_probe(&omap_sdi_driver, omap_sdi_probe); |
201 | } | 200 | } |
202 | 201 | ||
203 | void sdi_uninit_platform_driver(void) | 202 | 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 = { | |||
929 | }; | 929 | }; |
930 | 930 | ||
931 | static struct platform_driver omap_venchw_driver = { | 931 | static struct platform_driver omap_venchw_driver = { |
932 | .probe = omap_venchw_probe, | ||
933 | .remove = omap_venchw_remove, | 932 | .remove = omap_venchw_remove, |
934 | .driver = { | 933 | .driver = { |
935 | .name = "omapdss_venc", | 934 | .name = "omapdss_venc", |
@@ -943,7 +942,7 @@ int venc_init_platform_driver(void) | |||
943 | if (cpu_is_omap44xx()) | 942 | if (cpu_is_omap44xx()) |
944 | return 0; | 943 | return 0; |
945 | 944 | ||
946 | return platform_driver_register(&omap_venchw_driver); | 945 | return platform_driver_probe(&omap_venchw_driver, omap_venchw_probe); |
947 | } | 946 | } |
948 | 947 | ||
949 | void venc_uninit_platform_driver(void) | 948 | void venc_uninit_platform_driver(void) |