summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-08-04 11:05:25 (GMT)
committerArnd Bergmann <arnd@arndb.de>2012-08-10 10:27:46 (GMT)
commitd680e2c11eb0ddd21ba438b3a537e2eb093ff86f (patch)
tree46a94ebf41980f2cc3e25d2a4d8cf26a5a9b2f48 /drivers/spi
parent38eaed327dc5bea2e5548ea3d195de83a2070c6d (diff)
downloadlinux-d680e2c11eb0ddd21ba438b3a537e2eb093ff86f.tar.xz
mtd/omap2: fix dmaengine_slave_config error handling
The newly added dmaengine support in the omap2 nand driver potentially causes an undefined return value from the omap_nand_probe function when dmaengine_slave_config reports an error. Let's handle this by returning the same error back to the caller. Without this patch, building omap2plus_defconfig results in: drivers/mtd/nand/omap2.c: In function 'omap_nand_probe': drivers/mtd/nand/omap2.c:1154:6: warning: 'err' may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Russell King <rmk+kernel@arm.linux.org.uk> Cc: Grazvydas Ignotas <notasas@gmail.com>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions