Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c02e6a5f authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Samuel Ortiz
Browse files

mfd: Use resource_size() for t7l66xb



Use resource_size() for ioremap.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Molton <ian@mnementh.co.uk>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 311e54c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -360,7 +360,7 @@ static int t7l66xb_probe(struct platform_device *dev)
	if (ret)
		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) {
		ret = -ENOMEM;
		goto err_ioremap;