aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/mv_cesa.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/crypto/mv_cesa.c')
-rw-r--r--drivers/crypto/mv_cesa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c
index 18a436cafc10..e095422b58dd 100644
--- a/drivers/crypto/mv_cesa.c
+++ b/drivers/crypto/mv_cesa.c
@@ -1023,7 +1023,7 @@ static int mv_probe(struct platform_device *pdev)
1023 1023
1024 spin_lock_init(&cp->lock); 1024 spin_lock_init(&cp->lock);
1025 crypto_init_queue(&cp->queue, 50); 1025 crypto_init_queue(&cp->queue, 50);
1026 cp->reg = ioremap(res->start, res->end - res->start + 1); 1026 cp->reg = ioremap(res->start, resource_size(res));
1027 if (!cp->reg) { 1027 if (!cp->reg) {
1028 ret = -ENOMEM; 1028 ret = -ENOMEM;
1029 goto err; 1029 goto err;
@@ -1034,7 +1034,7 @@ static int mv_probe(struct platform_device *pdev)
1034 ret = -ENXIO; 1034 ret = -ENXIO;
1035 goto err_unmap_reg; 1035 goto err_unmap_reg;
1036 } 1036 }
1037 cp->sram_size = res->end - res->start + 1; 1037 cp->sram_size = resource_size(res);
1038 cp->max_req_size = cp->sram_size - SRAM_CFG_SPACE; 1038 cp->max_req_size = cp->sram_size - SRAM_CFG_SPACE;
1039 cp->sram = ioremap(res->start, cp->sram_size); 1039 cp->sram = ioremap(res->start, cp->sram_size);
1040 if (!cp->sram) { 1040 if (!cp->sram) {