diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-02 15:55:12 +0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-11 16:09:24 +0400 |
commit | 38f3daf678d909e8ee5638f21a34f35c01343420 (patch) | |
tree | 0e0ea8fa43e038980632906186f1e9d0021f82a7 /drivers/video/omap2/dss/sdi.c | |
parent | 11ee9606407031827d43ecde8e62a418ac3b4f83 (diff) | |
download | linux-38f3daf678d909e8ee5638f21a34f35c01343420.tar.xz |
OMAPDSS: separate pdata based initialization
Move the platform-data based display device initialization into a
separate function, so that we may later add of-based initialization.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/sdi.c')
-rw-r--r-- | drivers/video/omap2/dss/sdi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/sdi.c b/drivers/video/omap2/dss/sdi.c index 2641a768f316..3a43dc2a9b46 100644 --- a/drivers/video/omap2/dss/sdi.c +++ b/drivers/video/omap2/dss/sdi.c @@ -176,7 +176,7 @@ static int __init sdi_init_display(struct omap_dss_device *dssdev) return 0; } -static int __init omap_sdi_probe(struct platform_device *pdev) +static void __init sdi_probe_pdata(struct platform_device *pdev) { struct omap_dss_board_info *pdata = pdev->dev.platform_data; int i, r; @@ -198,6 +198,11 @@ static int __init omap_sdi_probe(struct platform_device *pdev) DSSERR("device %s register failed: %d\n", dssdev->name, r); } +} + +static int __init omap_sdi_probe(struct platform_device *pdev) +{ + sdi_probe_pdata(pdev); return 0; } |