Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289202
b: refs/heads/master
c: 02646fb
h: refs/heads/master
v: v3
  • Loading branch information
Andy Gross authored and Greg Kroah-Hartman committed Mar 7, 2012
1 parent c4a910a commit 9387505
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 132390c79e01b3da732bc7b5d9e729b52086ceb6
refs/heads/master: 02646fb8b3de95a170f8ac4f0773a4f5e2a1b54c
12 changes: 10 additions & 2 deletions trunk/drivers/staging/omapdrm/omap_dmm_tiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -766,10 +766,18 @@ int tiler_map_show(struct seq_file *s, void *arg)
const char *a2d = special;
const char *m2dp = m2d, *a2dp = a2d;
char nice[128];
int h_adj = omap_dmm->lut_height / ydiv;
int w_adj = omap_dmm->lut_width / xdiv;
int h_adj;
int w_adj;
unsigned long flags;

if (!omap_dmm) {
/* early return if dmm/tiler device is not initialized */
return 0;
}

h_adj = omap_dmm->lut_height / ydiv;
w_adj = omap_dmm->lut_width / xdiv;

map = kzalloc(h_adj * sizeof(*map), GFP_KERNEL);
global_map = kzalloc((w_adj + 1) * h_adj, GFP_KERNEL);

Expand Down

0 comments on commit 9387505

Please sign in to comment.