diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-11-11 15:47:06 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-11-30 04:51:44 -0500 |
commit | 895fb49459227edbb4a4e5a2b5e9d12c34640f84 (patch) | |
tree | c6d8ce92b3c3a9797bdb8c8196a671402b829f87 /drivers/mtd/nand | |
parent | b2ef1a2bb2eb49cd7c75b22f1ea40ead0bdfdb8a (diff) |
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/nand')
-rw-r--r-- | drivers/mtd/nand/atmel_nand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 4f62d207b87b..524e6c9e0672 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c | |||
@@ -463,7 +463,7 @@ static int __init atmel_nand_probe(struct platform_device *pdev) | |||
463 | if (host->board->det_pin) { | 463 | if (host->board->det_pin) { |
464 | if (gpio_get_value(host->board->det_pin)) { | 464 | if (gpio_get_value(host->board->det_pin)) { |
465 | printk(KERN_INFO "No SmartMedia card inserted.\n"); | 465 | printk(KERN_INFO "No SmartMedia card inserted.\n"); |
466 | res = ENXIO; | 466 | res = -ENXIO; |
467 | goto err_no_card; | 467 | goto err_no_card; |
468 | } | 468 | } |
469 | } | 469 | } |
@@ -534,7 +534,7 @@ static int __init atmel_nand_probe(struct platform_device *pdev) | |||
534 | 534 | ||
535 | if ((!partitions) || (num_partitions == 0)) { | 535 | if ((!partitions) || (num_partitions == 0)) { |
536 | printk(KERN_ERR "atmel_nand: No partitions defined, or unsupported device.\n"); | 536 | printk(KERN_ERR "atmel_nand: No partitions defined, or unsupported device.\n"); |
537 | res = ENXIO; | 537 | res = -ENXIO; |
538 | goto err_no_partitions; | 538 | goto err_no_partitions; |
539 | } | 539 | } |
540 | 540 | ||