MLK-14496 mtd: spi-nor: remove WARN_ONCE() message in spi_nor_write()
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Tue, 6 Dec 2016 17:14:24 +0000 (18:14 +0100)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:46 +0000 (15:21 -0500)
commitf1622b83c1b75820b902d49901307f7258ad93c2
tree1f5ce8b9141d96210d6adb86764a92c51464571b
parent3c434e5ef1a6870f54cfdb58e5557538b16508e7
MLK-14496 mtd: spi-nor: remove WARN_ONCE() message in spi_nor_write()

This patch removes the WARN_ONCE() test in spi_nor_write().
This macro triggers the display of a warning message almost every time we
use a UBI file-system because a write operation is performed at offset 64,
which is in the middle of the SPI NOR memory page. This is a valid
operation for ubifs.

Hence this warning is pretty annoying and useless so we just remove it.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Suggested-by: Richard Weinberger <richard@nod.at>
Suggested-by: Andras Szemzo <szemzo.andras@gmail.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
[Octavian: rebased to 4.9]
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Reviewed-by: "Frank Li" <frank.li@nxp.com>
drivers/mtd/spi-nor/spi-nor.c