summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-08-04 11:05:25 +0000
committerArnd Bergmann <arnd@arndb.de>2012-08-10 12:27:46 +0200
commitd680e2c11eb0ddd21ba438b3a537e2eb093ff86f (patch)
tree46a94ebf41980f2cc3e25d2a4d8cf26a5a9b2f48 /lib
parent38eaed327dc5bea2e5548ea3d195de83a2070c6d (diff)
downloadblackbird-op-linux-d680e2c11eb0ddd21ba438b3a537e2eb093ff86f.tar.gz
blackbird-op-linux-d680e2c11eb0ddd21ba438b3a537e2eb093ff86f.zip
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 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud