Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333585
b: refs/heads/master
c: 400e65d
h: refs/heads/master
i:
  333583: 1033541
v: v3
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed Sep 26, 2012
1 parent f86600a commit ea64ecc
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: 5d512fcdf6dc27ea34734fbdcab812d207b89ebb
refs/heads/master: 400e65d1c9946c9bf4d87a94d71f7d7423d03b62
14 changes: 9 additions & 5 deletions trunk/drivers/video/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,6 @@ struct dsi_packet_sent_handler_data {
struct completion *completion;
};

static struct platform_device *dsi_pdev_map[MAX_NUM_DSI];

#ifdef DEBUG
static bool dsi_perf;
module_param(dsi_perf, bool, 0644);
Expand All @@ -359,12 +357,19 @@ static inline struct dsi_data *dsi_get_dsidrv_data(struct platform_device *dside

static inline struct platform_device *dsi_get_dsidev_from_dssdev(struct omap_dss_device *dssdev)
{
return dsi_pdev_map[dssdev->phy.dsi.module];
return dssdev->output->pdev;
}

struct platform_device *dsi_get_dsidev_from_id(int module)
{
return dsi_pdev_map[module];
struct omap_dss_output *out;
enum omap_dss_output_id id;

id = module == 0 ? OMAP_DSS_OUTPUT_DSI1 : OMAP_DSS_OUTPUT_DSI2;

out = omap_dss_get_output(id);

return out->pdev;
}

static inline void dsi_write_reg(struct platform_device *dsidev,
Expand Down Expand Up @@ -5194,7 +5199,6 @@ static int __init omap_dsihw_probe(struct platform_device *dsidev)

dsi->module_id = dsidev->id;
dsi->pdev = dsidev;
dsi_pdev_map[dsi->module_id] = dsidev;
dev_set_drvdata(&dsidev->dev, dsi);

spin_lock_init(&dsi->irq_lock);
Expand Down

0 comments on commit ea64ecc

Please sign in to comment.