diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-11-11 21:47:06 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-11-30 09:51:44 +0000 |
commit | 895fb49459227edbb4a4e5a2b5e9d12c34640f84 (patch) | |
tree | c6d8ce92b3c3a9797bdb8c8196a671402b829f87 /drivers/mtd/maps/physmap.c | |
parent | b2ef1a2bb2eb49cd7c75b22f1ea40ead0bdfdb8a (diff) | |
download | op-kernel-dev-895fb49459227edbb4a4e5a2b5e9d12c34640f84.zip op-kernel-dev-895fb49459227edbb4a4e5a2b5e9d12c34640f84.tar.gz |
mtd: error return -EIO instead of EIO
Return a negative error value instead of a positive
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/maps/physmap.c')
-rw-r--r-- | drivers/mtd/maps/physmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c index 3f13a96..d9603f7 100644 --- a/drivers/mtd/maps/physmap.c +++ b/drivers/mtd/maps/physmap.c @@ -129,7 +129,7 @@ static int physmap_flash_probe(struct platform_device *dev) info->map[i].size); if (info->map[i].virt == NULL) { dev_err(&dev->dev, "Failed to ioremap flash region\n"); - err = EIO; + err = -EIO; goto err_out; } |