diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-05-02 05:18:20 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-05-02 05:24:11 -0400 |
commit | b5a99c2626a4ace340a535775342e2a75fbe60e7 (patch) | |
tree | 0119c7644a2d94df99a9806825f51b51f2fd2336 /drivers/video/omap2/dss/venc.c | |
parent | 17ae4e8c5a604fb0812b727e646d31735bd4d396 (diff) |
OMAPDSS: VENC: 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>
Diffstat (limited to 'drivers/video/omap2/dss/venc.c')
-rw-r--r-- | drivers/video/omap2/dss/venc.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/video/omap2/dss/venc.c b/drivers/video/omap2/dss/venc.c index 17764d136398..62ba53b2e574 100644 --- a/drivers/video/omap2/dss/venc.c +++ b/drivers/video/omap2/dss/venc.c | |||
@@ -633,7 +633,7 @@ void omapdss_venc_invert_vid_out_polarity(struct omap_dss_device *dssdev, | |||
633 | mutex_unlock(&venc.venc_lock); | 633 | mutex_unlock(&venc.venc_lock); |
634 | } | 634 | } |
635 | 635 | ||
636 | static int __init venc_init_display(struct omap_dss_device *dssdev) | 636 | static int venc_init_display(struct omap_dss_device *dssdev) |
637 | { | 637 | { |
638 | DSSDBG("init_display\n"); | 638 | DSSDBG("init_display\n"); |
639 | 639 | ||
@@ -726,7 +726,7 @@ static int venc_get_clocks(struct platform_device *pdev) | |||
726 | return 0; | 726 | return 0; |
727 | } | 727 | } |
728 | 728 | ||
729 | static struct omap_dss_device * __init venc_find_dssdev(struct platform_device *pdev) | 729 | static struct omap_dss_device *venc_find_dssdev(struct platform_device *pdev) |
730 | { | 730 | { |
731 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; | 731 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; |
732 | const char *def_disp_name = omapdss_get_default_display_name(); | 732 | const char *def_disp_name = omapdss_get_default_display_name(); |
@@ -754,7 +754,7 @@ static struct omap_dss_device * __init venc_find_dssdev(struct platform_device * | |||
754 | return def_dssdev; | 754 | return def_dssdev; |
755 | } | 755 | } |
756 | 756 | ||
757 | static void __init venc_probe_pdata(struct platform_device *vencdev) | 757 | static void venc_probe_pdata(struct platform_device *vencdev) |
758 | { | 758 | { |
759 | struct omap_dss_device *plat_dssdev; | 759 | struct omap_dss_device *plat_dssdev; |
760 | struct omap_dss_device *dssdev; | 760 | struct omap_dss_device *dssdev; |
@@ -795,7 +795,7 @@ static void __init venc_probe_pdata(struct platform_device *vencdev) | |||
795 | } | 795 | } |
796 | } | 796 | } |
797 | 797 | ||
798 | static void __init venc_init_output(struct platform_device *pdev) | 798 | static void venc_init_output(struct platform_device *pdev) |
799 | { | 799 | { |
800 | struct omap_dss_output *out = &venc.output; | 800 | struct omap_dss_output *out = &venc.output; |
801 | 801 | ||
@@ -816,7 +816,7 @@ static void __exit venc_uninit_output(struct platform_device *pdev) | |||
816 | } | 816 | } |
817 | 817 | ||
818 | /* VENC HW IP initialisation */ | 818 | /* VENC HW IP initialisation */ |
819 | static int __init omap_venchw_probe(struct platform_device *pdev) | 819 | static int omap_venchw_probe(struct platform_device *pdev) |
820 | { | 820 | { |
821 | u8 rev_id; | 821 | u8 rev_id; |
822 | struct resource *venc_mem; | 822 | struct resource *venc_mem; |
@@ -922,6 +922,7 @@ static const struct dev_pm_ops venc_pm_ops = { | |||
922 | }; | 922 | }; |
923 | 923 | ||
924 | static struct platform_driver omap_venchw_driver = { | 924 | static struct platform_driver omap_venchw_driver = { |
925 | .probe = omap_venchw_probe, | ||
925 | .remove = __exit_p(omap_venchw_remove), | 926 | .remove = __exit_p(omap_venchw_remove), |
926 | .driver = { | 927 | .driver = { |
927 | .name = "omapdss_venc", | 928 | .name = "omapdss_venc", |
@@ -932,7 +933,7 @@ static struct platform_driver omap_venchw_driver = { | |||
932 | 933 | ||
933 | int __init venc_init_platform_driver(void) | 934 | int __init venc_init_platform_driver(void) |
934 | { | 935 | { |
935 | return platform_driver_probe(&omap_venchw_driver, omap_venchw_probe); | 936 | return platform_driver_register(&omap_venchw_driver); |
936 | } | 937 | } |
937 | 938 | ||
938 | void __exit venc_uninit_platform_driver(void) | 939 | void __exit venc_uninit_platform_driver(void) |