From: Arnd Bergmann Date: Sat, 4 Aug 2012 11:05:25 +0000 (+0000) Subject: mtd/omap2: fix dmaengine_slave_config error handling X-Git-Tag: v3.6-rc2~20^2~2^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d680e2c11eb0ddd21ba438b3a537e2eb093ff86f;p=pandora-kernel.git 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 Cc: Russell King Cc: Grazvydas Ignotas --- Reading git-diff-tree failed