mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 09:09:55 -04:00
mtd: fsl_elbc_nand.c: user resource_size()
Use resource_size(). Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
committed by
David Woodhouse
parent
d8bc55553c
commit
8a19b55818
@@ -874,7 +874,7 @@ static int __devinit fsl_elbc_chip_probe(struct fsl_elbc_ctrl *ctrl,
|
||||
priv->ctrl = ctrl;
|
||||
priv->dev = ctrl->dev;
|
||||
|
||||
priv->vbase = ioremap(res.start, res.end - res.start + 1);
|
||||
priv->vbase = ioremap(res.start, resource_size(&res));
|
||||
if (!priv->vbase) {
|
||||
dev_err(ctrl->dev, "failed to map chip region\n");
|
||||
ret = -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user