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

Commit be6ec64a authored by Felipe Balbi's avatar Felipe Balbi Committed by Greg Kroah-Hartman
Browse files

w1: omap-hdq: don't hardcode resource size



we have the helpful resource_size() macro to
calculate the size of the memory resource for
us, let's use it.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Acked-by: default avatarEvgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8c3db42f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -566,7 +566,7 @@ static int __devinit omap_hdq_probe(struct platform_device *pdev)
		goto err_resource;
	}

	hdq_data->hdq_base = ioremap(res->start, SZ_4K);
	hdq_data->hdq_base = ioremap(res->start, resource_size(res));
	if (!hdq_data->hdq_base) {
		dev_dbg(&pdev->dev, "ioremap failed\n");
		ret = -EINVAL;