|
@@ -463,7 +463,7 @@ static int __init atmel_nand_probe(struct platform_device *pdev)
|
|
|
if (host->board->det_pin) {
|
|
|
if (gpio_get_value(host->board->det_pin)) {
|
|
|
printk(KERN_INFO "No SmartMedia card inserted.\n");
|
|
|
- res = ENXIO;
|
|
|
+ res = -ENXIO;
|
|
|
goto err_no_card;
|
|
|
}
|
|
|
}
|
|
@@ -534,7 +534,7 @@ static int __init atmel_nand_probe(struct platform_device *pdev)
|
|
|
|
|
|
if ((!partitions) || (num_partitions == 0)) {
|
|
|
printk(KERN_ERR "atmel_nand: No partitions defined, or unsupported device.\n");
|
|
|
- res = ENXIO;
|
|
|
+ res = -ENXIO;
|
|
|
goto err_no_partitions;
|
|
|
}
|
|
|
|