spi: spi-ep93xx: Fix the PTR_ERR() argument
authorFabio Estevam <fabio.estevam@nxp.com>
Tue, 24 May 2016 02:24:21 +0000 (23:24 -0300)
committerMark Brown <broonie@kernel.org>
Tue, 24 May 2016 15:54:50 +0000 (16:54 +0100)
commitf7aa23cb8dba96b92f46e47101d360c5e0fa4e3b
tree5db245f4bd8782b48372ef34d76f9e8941133bd5
parent29cf67b99527296e9c9b9f6995c1d271d21f79c0
spi: spi-ep93xx: Fix the PTR_ERR() argument

PTR_ERR should access the value just tested by IS_ERR.

The semantic patch that makes this change is available
in scripts/coccinelle/tests/odd_ptr_err.cocci.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-ep93xx.c