powerpc/dma: Fix check for direct DMA support
authorNishanth Aravamudan <nacc@us.ibm.com>
Wed, 15 Sep 2010 08:05:46 +0000 (08:05 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 13 Oct 2010 05:19:21 +0000 (16:19 +1100)
commitffa56e555a6e4c205e879636e6cd6104ce03421f
treef72c66743db9a0d5a4f41193c0a74ee4f1d8190a
parent1cb8e85a9d9da4192acfb5f70a80b0c5ce8c3e8f
powerpc/dma: Fix check for direct DMA support

The current check is wrong because it does not take the DMA offset intot
account, and in the case of a driver which doesn't actually support
64bits would falsely report that device as working.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/dma.c