]> err.no Git - linux-2.6/commitdiff
pasemi: Fix thinko in dma_direct_ops setup
authorOlof Johansson <olof@lixom.net>
Thu, 31 Jan 2008 23:50:02 +0000 (17:50 -0600)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 1 Feb 2008 10:03:36 +0000 (21:03 +1100)
[POWERPC] pasemi: Fix thinko in dma_direct_ops setup

The first patch will just fall through and still set dma_data to a bad
value, make it return directly instead.

Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/platforms/pasemi/iommu.c

index c5cfd4b04a830d81ef1ca59ced3db5a35a6590bb..5803f11c77fc07cc961f2610a9f0ec1b9f7aeef7 100644 (file)
@@ -184,7 +184,7 @@ static void pci_dma_dev_setup_pasemi(struct pci_dev *dev)
        if (dev->vendor == 0x1959 && dev->device == 0xa007 &&
            !firmware_has_feature(FW_FEATURE_LPAR)) {
                dev->dev.archdata.dma_ops = &dma_direct_ops;
-               dev->dev.archdata.dma_data = 0;
+               return;
        }
 #endif