Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251079
b: refs/heads/master
c: 49dbf58
h: refs/heads/master
i:
  251077: b5a9655
  251075: 895ccd0
  251071: 670aed2
v: v3
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed May 16, 2011
1 parent 22aa966 commit 3720b89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 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: b6cbb02ed0b834c6e1f876e9223736965795fd3d
refs/heads/master: 49dbf5892fc67466ac2780c1d42d8a02726f5538
25 changes: 7 additions & 18 deletions trunk/drivers/video/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,6 @@ struct dsi_data {
bool te_enabled;
bool ulps_enabled;

struct workqueue_struct *workqueue;

void (*framedone_callback)(int, void *);
void *framedone_data;

Expand Down Expand Up @@ -3753,8 +3751,8 @@ static void dsi_update_screen_dispc(struct omap_dss_device *dssdev,

dsi_perf_mark_start(dsidev);

r = queue_delayed_work(dsi->workqueue, &dsi->framedone_timeout_work,
msecs_to_jiffies(250));
r = schedule_delayed_work(&dsi->framedone_timeout_work,
msecs_to_jiffies(250));
BUG_ON(r == 0);

dss_start_update(dssdev);
Expand Down Expand Up @@ -4369,12 +4367,6 @@ static int dsi_init(struct platform_device *dsidev)
mutex_init(&dsi->lock);
sema_init(&dsi->bus_lock, 1);

dsi->workqueue = create_singlethread_workqueue(dev_name(&dsidev->dev));
if (dsi->workqueue == NULL) {
r = -ENOMEM;
goto err1;
}

INIT_DELAYED_WORK_DEFERRABLE(&dsi->framedone_timeout_work,
dsi_framedone_timeout_work_callback);

Expand All @@ -4387,26 +4379,26 @@ static int dsi_init(struct platform_device *dsidev)
if (!dsi_mem) {
DSSERR("can't get IORESOURCE_MEM DSI\n");
r = -EINVAL;
goto err2;
goto err1;
}
dsi->base = ioremap(dsi_mem->start, resource_size(dsi_mem));
if (!dsi->base) {
DSSERR("can't ioremap DSI\n");
r = -ENOMEM;
goto err2;
goto err1;
}
dsi->irq = platform_get_irq(dsi->pdev, 0);
if (dsi->irq < 0) {
DSSERR("platform_get_irq failed\n");
r = -ENODEV;
goto err3;
goto err2;
}

r = request_irq(dsi->irq, omap_dsi_irq_handler, IRQF_SHARED,
dev_name(&dsidev->dev), dsi->pdev);
if (r < 0) {
DSSERR("request_irq failed\n");
goto err3;
goto err2;
}

/* DSI VCs initialization */
Expand All @@ -4427,10 +4419,8 @@ static int dsi_init(struct platform_device *dsidev)
enable_clocks(0);

return 0;
err3:
iounmap(dsi->base);
err2:
destroy_workqueue(dsi->workqueue);
iounmap(dsi->base);
err1:
kfree(dsi);
err0:
Expand All @@ -4454,7 +4444,6 @@ static void dsi_exit(struct platform_device *dsidev)
free_irq(dsi->irq, dsi->pdev);
iounmap(dsi->base);

destroy_workqueue(dsi->workqueue);
kfree(dsi);

DSSDBG("omap_dsi_exit\n");
Expand Down

0 comments on commit 3720b89

Please sign in to comment.