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 /drivers/video/omap2/dss/hdmi.c | |
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>
Diffstat (limited to 'drivers/video/omap2/dss/hdmi.c')
-rw-r--r-- | drivers/video/omap2/dss/hdmi.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) |