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

Commit fbc09d3a authored by Thomas Meyer's avatar Thomas Meyer Committed by Mauro Carvalho Chehab
Browse files

[media] davinci vpbe: Use resource_size()

 Use resource_size function on resource object
 instead of explicit computation.

 The semantic patch that makes this output is available
 in scripts/coccinelle/api/resource_size.cocci.

 More information about semantic patching is available at
 http://coccinelle.lip6.fr/



Signed-off-by: default avatarThomas Meyer <thomas@m3y3r.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 096b703f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1162,7 +1162,7 @@ static int osd_probe(struct platform_device *pdev)
		goto free_mem;
		goto free_mem;
	}
	}
	osd->osd_base_phys = res->start;
	osd->osd_base_phys = res->start;
	osd->osd_size = res->end - res->start + 1;
	osd->osd_size = resource_size(res);
	if (!request_mem_region(osd->osd_base_phys, osd->osd_size,
	if (!request_mem_region(osd->osd_base_phys, osd->osd_size,
				MODULE_NAME)) {
				MODULE_NAME)) {
		dev_err(osd->dev, "Unable to reserve OSD MMIO region\n");
		dev_err(osd->dev, "Unable to reserve OSD MMIO region\n");