Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310342
b: refs/heads/master
c: c018c67
h: refs/heads/master
v: v3
  • Loading branch information
Tomi Valkeinen committed May 11, 2012
1 parent 792a1f1 commit cf22c8e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d64f14e191310570264454998201a84d211f30aa
refs/heads/master: c018c6738bdae8c9f49766fd3d8b3770be2572f9
14 changes: 9 additions & 5 deletions trunk/drivers/video/omap2/dss/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ static struct {

struct regulator *vdds_dsi_reg;
struct regulator *vdds_sdi_reg;

const char *default_display_name;
} core;

static char *def_disp_name;
Expand Down Expand Up @@ -222,6 +224,11 @@ static int __init omap_dss_probe(struct platform_device *pdev)
if (r)
goto err_debugfs;

if (def_disp_name)
core.default_display_name = def_disp_name;
else if (pdata->default_device)
core.default_display_name = pdata->default_device->name;

for (i = 0; i < pdata->num_devices; ++i) {
struct omap_dss_device *dssdev = pdata->devices[i];

Expand All @@ -235,9 +242,6 @@ static int __init omap_dss_probe(struct platform_device *pdev)

goto err_register;
}

if (def_disp_name && strcmp(def_disp_name, dssdev->name) == 0)
pdata->default_device = dssdev;
}

return 0;
Expand Down Expand Up @@ -360,7 +364,6 @@ static int dss_driver_probe(struct device *dev)
int r;
struct omap_dss_driver *dssdrv = to_dss_driver(dev->driver);
struct omap_dss_device *dssdev = to_dss_device(dev);
struct omap_dss_board_info *pdata = core.pdev->dev.platform_data;
bool force;

DSSDBG("driver_probe: dev %s/%s, drv %s\n",
Expand All @@ -369,7 +372,8 @@ static int dss_driver_probe(struct device *dev)

dss_init_device(core.pdev, dssdev);

force = pdata->default_device == dssdev;
force = core.default_display_name &&
strcmp(core.default_display_name, dssdev->name) == 0;
dss_recheck_connections(dssdev, force);

r = dssdrv->probe(dssdev);
Expand Down

0 comments on commit cf22c8e

Please sign in to comment.