From: Guennadi Liakhovetski Date: Wed, 28 Nov 2012 06:49:47 +0000 (+0000) Subject: dma: sh: Don't use ENODEV for failing slave lookup X-Git-Tag: v3.9-rc1~80^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c1119bdd650fa58dad8157bc75c5fcf6ed97843;p=pandora-kernel.git dma: sh: Don't use ENODEV for failing slave lookup If dmaengine driver's .device_alloc_chan_resources() method returns -ENODEV, dma_request_channel() will decide, that the driver has been removed and will remove the device from its list. To prevent this use ENXIO if a slave lookup fails. Reported-by: Kuninori Morimoto Signed-off-by: Guennadi Liakhovetski Cc: stable@vger.kernel.org Signed-off-by: Vinod Koul --- Reading git-diff-tree failed