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

Commit cb85b7e7 authored by Mark Brown's avatar Mark Brown Committed by Brian Norris
Browse files

mtd: dataflash: Say if we find a device we don't support



Ensure that the error message if we identify a flash we don't know how to
talk to is displayed on the console in order to aid diagnostics. While
we're at convert the message to use dev_info() rather than our hand rolled
version of it for consistency.

Signed-off-by: default avatarMark Brown <broonie@linaro.org>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 9211439b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -879,7 +879,7 @@ static int dataflash_probe(struct spi_device *spi)
		break;
		break;
	/* obsolete AT45DB1282 not (yet?) supported */
	/* obsolete AT45DB1282 not (yet?) supported */
	default:
	default:
		pr_debug("%s: unsupported device (%x)\n", dev_name(&spi->dev),
		dev_info(&spi->dev, "unsupported device (%x)\n",
				status & 0x3c);
				status & 0x3c);
		status = -ENODEV;
		status = -ENODEV;
	}
	}