Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333592
b: refs/heads/master
c: 947b225
h: refs/heads/master
v: v3
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed Sep 26, 2012
1 parent c61e5c7 commit 0a64b3c
Show file tree
Hide file tree
Showing 2 changed files with 17 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: 952cbaaa9b8beacc425f9aedf370468cbb737a2c
refs/heads/master: 947b2254249ceab769dfa07d5291fd77e387a0c7
21 changes: 16 additions & 5 deletions trunk/drivers/video/omap2/dss/manager-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,29 @@ static ssize_t manager_display_store(struct omap_overlay_manager *mgr,
if (dssdev)
DSSDBG("display %s found\n", dssdev->name);

if (mgr->get_device(mgr)) {
r = mgr->unset_device(mgr);
if (mgr->output) {
r = mgr->unset_output(mgr);
if (r) {
DSSERR("failed to unset display\n");
DSSERR("failed to unset current output\n");
goto put_device;
}
}

if (dssdev) {
r = mgr->set_device(mgr, dssdev);
struct omap_dss_output *out = dssdev->output;

/*
* a registered device should have an output connected to it
* already
*/
if (!out) {
DSSERR("device has no output connected to it\n");
goto put_device;
}

r = mgr->set_output(mgr, out);
if (r) {
DSSERR("failed to set manager\n");
DSSERR("failed to set manager output\n");
goto put_device;
}

Expand Down

0 comments on commit 0a64b3c

Please sign in to comment.