[SPARC64]: Compute dma_end argument to sabre_pbm_init() correctly.
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 18 Oct 2006 19:48:35 +0000 (12:48 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 20 Oct 2006 00:20:30 +0000 (17:20 -0700)
virtual-dma property layout is [start, size] not [start, end].

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/pci_sabre.c

index de7f7850a844d72f70445b922a023edfac1af40d..94bb681f232379bf05a77df690c4e9944369d8d5 100644 (file)
@@ -1465,5 +1465,5 @@ void sabre_init(struct device_node *dp, char *model_name)
        /*
         * Look for APB underneath.
         */
-       sabre_pbm_init(p, dp, vdma[0], vdma[1]);
+       sabre_pbm_init(p, dp, vdma[0], vdma[0] + vdma[1]);
 }