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/dpi.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/dpi.c')
-rw-r--r-- | drivers/video/omap2/dss/dpi.c | 3 |
1 files changed, 1 insertions, 2 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 | ||
378 | static struct platform_driver omap_dpi_driver = { | 378 | static 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 | ||
387 | int dpi_init_platform_driver(void) | 386 | int 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 | ||
392 | void dpi_uninit_platform_driver(void) | 391 | void dpi_uninit_platform_driver(void) |