Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196728
b: refs/heads/master
c: 5bdd5de
h: refs/heads/master
v: v3
  • Loading branch information
Tobias Klauser authored and Herbert Xu committed May 14, 2010
1 parent dc50b25 commit 33e1455
Show file tree
Hide file tree
Showing 2 changed files with 3 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: edc774ed0c7d75e92b53105b386a5b0ce94d4525
refs/heads/master: 5bdd5ded95b3188d58ba43ac801b8849cbea1b16
4 changes: 2 additions & 2 deletions trunk/drivers/crypto/mv_cesa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ static int mv_probe(struct platform_device *pdev)

spin_lock_init(&cp->lock);
crypto_init_queue(&cp->queue, 50);
cp->reg = ioremap(res->start, res->end - res->start + 1);
cp->reg = ioremap(res->start, resource_size(res));
if (!cp->reg) {
ret = -ENOMEM;
goto err;
Expand All @@ -1034,7 +1034,7 @@ static int mv_probe(struct platform_device *pdev)
ret = -ENXIO;
goto err_unmap_reg;
}
cp->sram_size = res->end - res->start + 1;
cp->sram_size = resource_size(res);
cp->max_req_size = cp->sram_size - SRAM_CFG_SPACE;
cp->sram = ioremap(res->start, cp->sram_size);
if (!cp->sram) {
Expand Down

0 comments on commit 33e1455

Please sign in to comment.