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)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 22 Oct 2014 08:35:41 +0000 (01:35 -0700)
commitb26171e392c7d3952b6eeb6da62a861c5317e438
tree07cf9be010395d961af63226b455a843b50534fc
parenta0fa0b66ac1ce73ff791df977b07410a6f4cd337
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>
drivers/mtd/spi-nor/fsl-quadspi.c