mtd: spi-nor-core: Use dev_err for reporting erase/write failures
authorVignesh Raghavendra <vigneshr@ti.com>
Thu, 26 Sep 2019 13:34:26 +0000 (19:04 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 24 Oct 2019 19:18:32 +0000 (00:48 +0530)
commitcc9118757f6ce57bf1776cca41cb52a3dc24401e
tree84797e1915c9091a24431eafcc9b966eb1186444
parenta9ec8423a9c3d2c076ba7706f43859e025e44781
mtd: spi-nor-core: Use dev_err for reporting erase/write failures

Use dev_err() when reporting reason for erase/write failures so that
users can be made aware of the reason for failure.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/spi-nor-core.c