Prev: [PATCH 47/58] tty: moxa: Use more tty_port ops
Next: possible bug in checkpatch.pl with __deprecated?
From: H Hartley Sweeten on 11 Dec 2009 19:20 Use resource_size() for ioremap. Signed-off-by: H Hartley Sweeten <hsweeten(a)visionengravers.com> Cc: Hans-Christian Egtvedt <hans-christian.egtvedt(a)atmel.com> --- diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c index 558bf3f..f4acd10 100644 --- a/drivers/misc/atmel-ssc.c +++ b/drivers/misc/atmel-ssc.c @@ -94,7 +94,7 @@ static int __init ssc_probe(struct platform_device *pdev) } ssc->pdev = pdev; - ssc->regs = ioremap(regs->start, regs->end - regs->start + 1); + ssc->regs = ioremap(regs->start, resource_size(regs)); if (!ssc->regs) { dev_dbg(&pdev->dev, "ioremap failed\n"); retval = -EINVAL; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |