mtd: spi-nor: intel: use ERR_CAST in return statement
authorNicholas Mc Guire <der.herr@hofr.at>
Mon, 13 Feb 2017 08:14:21 +0000 (09:14 +0100)
committerCyrille Pitchen <cyrille.pitchen@atmel.com>
Tue, 7 Mar 2017 21:09:56 +0000 (22:09 +0100)
commit011de1b1db534b0ab4ad8099b99c12a17e7c68e0
tree79978a2be4aaf36aeb04d3cb5d5d9d7ee0a66071
parent22d61878565916a0f0ff4babe9207365d0dc8bd6
mtd: spi-nor: intel: use ERR_CAST in return statement

This fixes a sparse warning about incorrect type in return expression.

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
drivers/mtd/spi-nor/intel-spi.c