]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
OMAPDSS: fix DPI and SDI device ids
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 29 Aug 2013 13:06:27 +0000 (16:06 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 29 Aug 2013 13:21:51 +0000 (16:21 +0300)
The DPI and SDI platform devices are currently created with the ID of
-1. The ID doesn't currently affect anything.

However, we have added regulator supply entries for "omapdss_dpi.0" and
"omapdss_sdi.0" to the board files, although these supply entries are
not yet used. As the ID used for the devices is -1, these regulator
supply entries will not work.

To fix the issue, assign ID of 0 to the devices. In the future there may
be more than one DPI or SDI output, so it makes sense to have a proper
ID for them.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Archit Taneja <archit@ti.com>
arch/arm/mach-omap2/display.c

index ff37be1f6f932cdd3585db7b11e4603dc69044ad..03a0516c7f678294d1f7a261901a61550c0f012a 100644 (file)
@@ -400,7 +400,7 @@ int __init omap_display_init(struct omap_dss_board_info *board_data)
 
        /* Create devices for DPI and SDI */
 
-       pdev = create_simple_dss_pdev("omapdss_dpi", -1,
+       pdev = create_simple_dss_pdev("omapdss_dpi", 0,
                        board_data, sizeof(*board_data), dss_pdev);
        if (IS_ERR(pdev)) {
                pr_err("Could not build platform_device for omapdss_dpi\n");
@@ -408,7 +408,7 @@ int __init omap_display_init(struct omap_dss_board_info *board_data)
        }
 
        if (cpu_is_omap34xx()) {
-               pdev = create_simple_dss_pdev("omapdss_sdi", -1,
+               pdev = create_simple_dss_pdev("omapdss_sdi", 0,
                                board_data, sizeof(*board_data), dss_pdev);
                if (IS_ERR(pdev)) {
                        pr_err("Could not build platform_device for omapdss_sdi\n");