From 61055d4b2eb164cb81af1e5940a31c7f2e53757e Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Wed, 7 Mar 2012 12:53:38 +0200 Subject: 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 --- drivers/video/omap2/dss/venc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/video/omap2/dss/venc.c') 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 = { }; static struct platform_driver omap_venchw_driver = { - .probe = omap_venchw_probe, .remove = omap_venchw_remove, .driver = { .name = "omapdss_venc", @@ -943,7 +942,7 @@ int venc_init_platform_driver(void) if (cpu_is_omap44xx()) return 0; - return platform_driver_register(&omap_venchw_driver); + return platform_driver_probe(&omap_venchw_driver, omap_venchw_probe); } void venc_uninit_platform_driver(void) -- cgit v1.2.3