diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2009-11-23 10:31:18 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-23 10:31:18 -0800 |
commit | 8492090542b8bc6b65b60ccf0b49ff8f0a460ab2 (patch) | |
tree | 9d28c2f1fb35b539241e39232d978a6c789a1a6b /drivers/ide/tx4938ide.c | |
parent | 30433d8141e239fe3621c882170876b9e5a2a94b (diff) | |
download | kernel_samsung_crespo-8492090542b8bc6b65b60ccf0b49ff8f0a460ab2.zip kernel_samsung_crespo-8492090542b8bc6b65b60ccf0b49ff8f0a460ab2.tar.gz kernel_samsung_crespo-8492090542b8bc6b65b60ccf0b49ff8f0a460ab2.tar.bz2 |
drivers/ide/tx4938ide.c: use resource_size()
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>
Diffstat (limited to 'drivers/ide/tx4938ide.c')
-rw-r--r-- | drivers/ide/tx4938ide.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/tx4938ide.c b/drivers/ide/tx4938ide.c index ea89fdd..fd59c0d 100644 --- a/drivers/ide/tx4938ide.c +++ b/drivers/ide/tx4938ide.c @@ -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); |