diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-04-26 07:48:43 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-05-02 05:24:10 -0400 |
commit | 17ae4e8c5a604fb0812b727e646d31735bd4d396 (patch) | |
tree | b938f24ade9430510f066328c703fb10be3660c5 | |
parent | 9abf7de1b1b173eebeae9ed07fb7a30fb2788681 (diff) |
OMAPDSS: HDMI: use platform_driver_register()
Use platform_driver_register() instead of platform_driver_probe() so
that we can support EPROBE_DEFER.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/omap2/dss/hdmi.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c index 79393099d505..9aefe60800f2 100644 --- a/drivers/video/omap2/dss/hdmi.c +++ b/drivers/video/omap2/dss/hdmi.c | |||
@@ -328,7 +328,7 @@ static void hdmi_runtime_put(void) | |||
328 | WARN_ON(r < 0 && r != -ENOSYS); | 328 | WARN_ON(r < 0 && r != -ENOSYS); |
329 | } | 329 | } |
330 | 330 | ||
331 | static int __init hdmi_init_display(struct omap_dss_device *dssdev) | 331 | static int hdmi_init_display(struct omap_dss_device *dssdev) |
332 | { | 332 | { |
333 | int r; | 333 | int r; |
334 | 334 | ||
@@ -954,7 +954,7 @@ int hdmi_audio_config(struct omap_dss_audio *audio) | |||
954 | 954 | ||
955 | #endif | 955 | #endif |
956 | 956 | ||
957 | static struct omap_dss_device * __init hdmi_find_dssdev(struct platform_device *pdev) | 957 | static struct omap_dss_device *hdmi_find_dssdev(struct platform_device *pdev) |
958 | { | 958 | { |
959 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; | 959 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; |
960 | const char *def_disp_name = omapdss_get_default_display_name(); | 960 | const char *def_disp_name = omapdss_get_default_display_name(); |
@@ -982,7 +982,7 @@ static struct omap_dss_device * __init hdmi_find_dssdev(struct platform_device * | |||
982 | return def_dssdev; | 982 | return def_dssdev; |
983 | } | 983 | } |
984 | 984 | ||
985 | static void __init hdmi_probe_pdata(struct platform_device *pdev) | 985 | static void hdmi_probe_pdata(struct platform_device *pdev) |
986 | { | 986 | { |
987 | struct omap_dss_device *plat_dssdev; | 987 | struct omap_dss_device *plat_dssdev; |
988 | struct omap_dss_device *dssdev; | 988 | struct omap_dss_device *dssdev; |
@@ -1031,7 +1031,7 @@ static void __init hdmi_probe_pdata(struct platform_device *pdev) | |||
1031 | } | 1031 | } |
1032 | } | 1032 | } |
1033 | 1033 | ||
1034 | static void __init hdmi_init_output(struct platform_device *pdev) | 1034 | static void hdmi_init_output(struct platform_device *pdev) |
1035 | { | 1035 | { |
1036 | struct omap_dss_output *out = &hdmi.output; | 1036 | struct omap_dss_output *out = &hdmi.output; |
1037 | 1037 | ||
@@ -1052,7 +1052,7 @@ static void __exit hdmi_uninit_output(struct platform_device *pdev) | |||
1052 | } | 1052 | } |
1053 | 1053 | ||
1054 | /* HDMI HW IP initialisation */ | 1054 | /* HDMI HW IP initialisation */ |
1055 | static int __init omapdss_hdmihw_probe(struct platform_device *pdev) | 1055 | static int omapdss_hdmihw_probe(struct platform_device *pdev) |
1056 | { | 1056 | { |
1057 | struct resource *res; | 1057 | struct resource *res; |
1058 | int r; | 1058 | int r; |
@@ -1151,6 +1151,7 @@ static const struct dev_pm_ops hdmi_pm_ops = { | |||
1151 | }; | 1151 | }; |
1152 | 1152 | ||
1153 | static struct platform_driver omapdss_hdmihw_driver = { | 1153 | static struct platform_driver omapdss_hdmihw_driver = { |
1154 | .probe = omapdss_hdmihw_probe, | ||
1154 | .remove = __exit_p(omapdss_hdmihw_remove), | 1155 | .remove = __exit_p(omapdss_hdmihw_remove), |
1155 | .driver = { | 1156 | .driver = { |
1156 | .name = "omapdss_hdmi", | 1157 | .name = "omapdss_hdmi", |
@@ -1161,7 +1162,7 @@ static struct platform_driver omapdss_hdmihw_driver = { | |||
1161 | 1162 | ||
1162 | int __init hdmi_init_platform_driver(void) | 1163 | int __init hdmi_init_platform_driver(void) |
1163 | { | 1164 | { |
1164 | return platform_driver_probe(&omapdss_hdmihw_driver, omapdss_hdmihw_probe); | 1165 | return platform_driver_register(&omapdss_hdmihw_driver); |
1165 | } | 1166 | } |
1166 | 1167 | ||
1167 | void __exit hdmi_uninit_platform_driver(void) | 1168 | void __exit hdmi_uninit_platform_driver(void) |