treewide: Convert uses of struct resource to resource_size(ptr)
Several fixes as well where the +1 was missing. Done via coccinelle scripts like: @@ struct resource *ptr; @@ - ptr->end - ptr->start + 1 + resource_size(ptr) and some grep and typing. Mostly uncompiled, no cross-compilers. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
@@ -142,7 +142,7 @@ static int __devinit bfin_flash_probe(struct platform_device *pdev)
|
||||
state->map.write = bfin_flash_write;
|
||||
state->map.copy_to = bfin_flash_copy_to;
|
||||
state->map.bankwidth = pdata->width;
|
||||
state->map.size = memory->end - memory->start + 1;
|
||||
state->map.size = resource_size(memory);
|
||||
state->map.virt = (void __iomem *)memory->start;
|
||||
state->map.phys = memory->start;
|
||||
state->map.map_priv_1 = (unsigned long)state;
|
||||
|
Reference in New Issue
Block a user