]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MLK-9842 mtd: fsl-quadspi: Propagate the error from of_modalias_node()
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 17 Oct 2014 18:31:08 +0000 (15:31 -0300)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:20:00 +0000 (21:20 -0600)
commitec934d7bf7bfb213f90be5b301f16d8a31ec54b1
treeb546eb0a003ebb9dc2e49f3dcc10021658b4aefb
parent6ce1a6d506bffb25f5b3f947a59ae05be3a854dd
MLK-9842 mtd: fsl-quadspi: Propagate the error from of_modalias_node()

The 'map_failed' label will return 'ret', so we need to assign the error
code to 'ret', otherwise the probe function will return success.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
(cherry picked from commit b26171e392c7d3952b6eeb6da62a861c5317e438)
(cherry picked from commit 9e4a091d30e27dd40a04b892bf5f6bf372271380)
drivers/mtd/spi-nor/fsl-quadspi.c