mfd: Use resource_size() for t7l66xb
Use resource_size() for ioremap. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Molton <ian@mnementh.co.uk> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
committed by
Samuel Ortiz
parent
311e54c07e
commit
c02e6a5ff4
@@ -360,7 +360,7 @@ static int t7l66xb_probe(struct platform_device *dev)
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto err_request_scr;
|
goto err_request_scr;
|
||||||
|
|
||||||
t7l66xb->scr = ioremap(rscr->start, rscr->end - rscr->start + 1);
|
t7l66xb->scr = ioremap(rscr->start, resource_size(rscr));
|
||||||
if (!t7l66xb->scr) {
|
if (!t7l66xb->scr) {
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto err_ioremap;
|
goto err_ioremap;
|
||||||
|
Reference in New Issue
Block a user