diff options
Diffstat (limited to 'drivers/mtd/nand/atmel_nand.c')
-rw-r--r-- | drivers/mtd/nand/atmel_nand.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index f8e9975c86e5..524e6c9e0672 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c | |||
@@ -192,7 +192,6 @@ static int atmel_nand_calculate(struct mtd_info *mtd, | |||
192 | { | 192 | { |
193 | struct nand_chip *nand_chip = mtd->priv; | 193 | struct nand_chip *nand_chip = mtd->priv; |
194 | struct atmel_nand_host *host = nand_chip->priv; | 194 | struct atmel_nand_host *host = nand_chip->priv; |
195 | uint32_t *eccpos = nand_chip->ecc.layout->eccpos; | ||
196 | unsigned int ecc_value; | 195 | unsigned int ecc_value; |
197 | 196 | ||
198 | /* get the first 2 ECC bytes */ | 197 | /* get the first 2 ECC bytes */ |
@@ -464,7 +463,7 @@ static int __init atmel_nand_probe(struct platform_device *pdev) | |||
464 | if (host->board->det_pin) { | 463 | if (host->board->det_pin) { |
465 | if (gpio_get_value(host->board->det_pin)) { | 464 | if (gpio_get_value(host->board->det_pin)) { |
466 | printk(KERN_INFO "No SmartMedia card inserted.\n"); | 465 | printk(KERN_INFO "No SmartMedia card inserted.\n"); |
467 | res = ENXIO; | 466 | res = -ENXIO; |
468 | goto err_no_card; | 467 | goto err_no_card; |
469 | } | 468 | } |
470 | } | 469 | } |
@@ -535,7 +534,7 @@ static int __init atmel_nand_probe(struct platform_device *pdev) | |||
535 | 534 | ||
536 | if ((!partitions) || (num_partitions == 0)) { | 535 | if ((!partitions) || (num_partitions == 0)) { |
537 | 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"); |
538 | res = ENXIO; | 537 | res = -ENXIO; |
539 | goto err_no_partitions; | 538 | goto err_no_partitions; |
540 | } | 539 | } |
541 | 540 | ||