Skip to content

Commit

Permalink
drivers/ide/tx4938ide.c: use resource_size()
Browse files Browse the repository at this point in the history
Use resource_size() for devm_request_mem_region.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
H Hartley Sweeten authored and David S. Miller committed Nov 23, 2009
1 parent 30433d8 commit 8492090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/tx4938ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static int __init tx4938ide_probe(struct platform_device *pdev)
return -ENODEV;

if (!devm_request_mem_region(&pdev->dev, res->start,
res->end - res->start + 1, "tx4938ide"))
resource_size(res), "tx4938ide"))
return -EBUSY;
mapbase = (unsigned long)devm_ioremap(&pdev->dev, res->start,
8 << pdata->ioport_shift);
Expand Down

0 comments on commit 8492090

Please sign in to comment.