Skip to content

Commit

Permalink
powerpc/fsl_msi: return proper error value when ioremap failed.
Browse files Browse the repository at this point in the history
Signed-off-by: Liu Shuo <soniccat.liu@gmail.com>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Liu Shuo authored and Kumar Gala committed Mar 16, 2012
1 parent e131fbd commit b53804c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/sysdev/fsl_msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ static int __devinit fsl_of_msi_probe(struct platform_device *dev)

msi->msi_regs = ioremap(res.start, resource_size(&res));
if (!msi->msi_regs) {
err = -ENOMEM;
dev_err(&dev->dev, "could not map node %s\n",
dev->dev.of_node->full_name);
goto error_out;
Expand Down

0 comments on commit b53804c

Please sign in to comment.