Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344577
b: refs/heads/master
c: 78e7f25
h: refs/heads/master
i:
  344575: 578532e
v: v3
  • Loading branch information
Tomi Valkeinen committed Oct 18, 2012
1 parent 21eac2d commit 1a4de7f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 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: 7a992d3ebdd752eb0bf9d7e64788c509d586549d
refs/heads/master: 78e7f256b207aba4bc0bcd9ba55e472dab87afc8
13 changes: 11 additions & 2 deletions trunk/drivers/video/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,20 @@ struct platform_device *dsi_get_dsidev_from_id(int module)
struct omap_dss_output *out;
enum omap_dss_output_id id;

id = module == 0 ? OMAP_DSS_OUTPUT_DSI1 : OMAP_DSS_OUTPUT_DSI2;
switch (module) {
case 0:
id = OMAP_DSS_OUTPUT_DSI1;
break;
case 1:
id = OMAP_DSS_OUTPUT_DSI2;
break;
default:
return NULL;
}

out = omap_dss_get_output(id);

return out->pdev;
return out ? out->pdev : NULL;
}

static inline void dsi_write_reg(struct platform_device *dsidev,
Expand Down

0 comments on commit 1a4de7f

Please sign in to comment.