diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2009-12-14 16:19:44 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-12-31 14:53:51 -0500 |
commit | 8a19b5581862650ab1735d4699491ac92bd2e212 (patch) | |
tree | c7116cb31ca7d27c0db0844c1f65e399fcd40d68 /drivers/mtd/nand/fsl_elbc_nand.c | |
parent | d8bc55553c416c877267c1efd65b099164acbe3f (diff) |
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>
Diffstat (limited to 'drivers/mtd/nand/fsl_elbc_nand.c')
-rw-r--r-- | drivers/mtd/nand/fsl_elbc_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/fsl_elbc_nand.c index ae30fb6eed97..1b8328fbb9dc 100644 --- a/drivers/mtd/nand/fsl_elbc_nand.c +++ b/drivers/mtd/nand/fsl_elbc_nand.c | |||
@@ -874,7 +874,7 @@ static int __devinit fsl_elbc_chip_probe(struct fsl_elbc_ctrl *ctrl, | |||
874 | priv->ctrl = ctrl; | 874 | priv->ctrl = ctrl; |
875 | priv->dev = ctrl->dev; | 875 | priv->dev = ctrl->dev; |
876 | 876 | ||
877 | priv->vbase = ioremap(res.start, res.end - res.start + 1); | 877 | priv->vbase = ioremap(res.start, resource_size(&res)); |
878 | if (!priv->vbase) { | 878 | if (!priv->vbase) { |
879 | dev_err(ctrl->dev, "failed to map chip region\n"); | 879 | dev_err(ctrl->dev, "failed to map chip region\n"); |
880 | ret = -ENOMEM; | 880 | ret = -ENOMEM; |