Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 895fb494 authored by Roel Kluin's avatar Roel Kluin Committed by David Woodhouse
Browse files

mtd: error return -EIO instead of EIO



Return a negative error value instead of a positive

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent b2ef1a2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -129,7 +129,7 @@ static int physmap_flash_probe(struct platform_device *dev)
						 info->map[i].size);
						 info->map[i].size);
		if (info->map[i].virt == NULL) {
		if (info->map[i].virt == NULL) {
			dev_err(&dev->dev, "Failed to ioremap flash region\n");
			dev_err(&dev->dev, "Failed to ioremap flash region\n");
			err = EIO;
			err = -EIO;
			goto err_out;
			goto err_out;
		}
		}


+1 −1
Original line number Original line Diff line number Diff line
@@ -620,7 +620,7 @@ static int __devinit vmu_connect(struct maple_device *mdev)


	card = kmalloc(sizeof(struct memcard), GFP_KERNEL);
	card = kmalloc(sizeof(struct memcard), GFP_KERNEL);
	if (!card) {
	if (!card) {
		error = ENOMEM;
		error = -ENOMEM;
		goto fail_nomem;
		goto fail_nomem;
	}
	}


+2 −2
Original line number Original line Diff line number Diff line
@@ -463,7 +463,7 @@ static int __init atmel_nand_probe(struct platform_device *pdev)
	if (host->board->det_pin) {
	if (host->board->det_pin) {
		if (gpio_get_value(host->board->det_pin)) {
		if (gpio_get_value(host->board->det_pin)) {
			printk(KERN_INFO "No SmartMedia card inserted.\n");
			printk(KERN_INFO "No SmartMedia card inserted.\n");
			res = ENXIO;
			res = -ENXIO;
			goto err_no_card;
			goto err_no_card;
		}
		}
	}
	}
@@ -534,7 +534,7 @@ static int __init atmel_nand_probe(struct platform_device *pdev)


	if ((!partitions) || (num_partitions == 0)) {
	if ((!partitions) || (num_partitions == 0)) {
		printk(KERN_ERR "atmel_nand: No partitions defined, or unsupported device.\n");
		printk(KERN_ERR "atmel_nand: No partitions defined, or unsupported device.\n");
		res = ENXIO;
		res = -ENXIO;
		goto err_no_partitions;
		goto err_no_partitions;
	}
	}