aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-03-07 05:53:38 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-05-11 07:44:52 -0400
commit61055d4b2eb164cb81af1e5940a31c7f2e53757e (patch)
treee79580e110c1a73b8a917d3ee50f478026069722
parente40402cf182e798fd71824f4ad02fb51ce599bb2 (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.c3
-rw-r--r--drivers/video/omap2/dss/dsi.c3
-rw-r--r--drivers/video/omap2/dss/hdmi.c3
-rw-r--r--drivers/video/omap2/dss/rfbi.c3
-rw-r--r--drivers/video/omap2/dss/sdi.c3
-rw-r--r--drivers/video/omap2/dss/venc.c3
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
378static struct platform_driver omap_dpi_driver = { 378static 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
387int dpi_init_platform_driver(void) 386int 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
392void dpi_uninit_platform_driver(void) 391void 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
4770static struct platform_driver omap_dsihw_driver = { 4770static 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
4780int dsi_init_platform_driver(void) 4779int 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
4785void dsi_uninit_platform_driver(void) 4784void 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
874static struct platform_driver omapdss_hdmihw_driver = { 874static 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
884int hdmi_init_platform_driver(void) 883int 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
889void hdmi_uninit_platform_driver(void) 888void 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
1017static struct platform_driver omap_rfbihw_driver = { 1017static 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
1027int rfbi_init_platform_driver(void) 1026int 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
1032void rfbi_uninit_platform_driver(void) 1031void 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
189static struct platform_driver omap_sdi_driver = { 189static 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
198int sdi_init_platform_driver(void) 197int 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
203void sdi_uninit_platform_driver(void) 202void 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
931static struct platform_driver omap_venchw_driver = { 931static 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
949void venc_uninit_platform_driver(void) 948void venc_uninit_platform_driver(void)