]> git.hungrycats.org Git - linux/commitdiff
ppc64: Fix a refounting issue in macio_asic
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 13 Feb 2004 02:47:20 +0000 (13:47 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 13 Feb 2004 02:47:20 +0000 (13:47 +1100)
drivers/macintosh/macio_asic.c

index a35d44c77f30e0f87fe0a07ebb3309af6d48a0fa..013253dd0f7ad80da0b5d72a2af83227db2789fa 100644 (file)
@@ -539,6 +539,9 @@ static int __devinit macio_pci_probe(struct pci_dev *pdev, const struct pci_devi
        if (np == NULL)
                return -ENODEV;
 
+       /* This assumption is wrong, fix that here for now until I fix the arch */
+       of_node_get(np);
+
        /* We also assume that pmac_feature will have done a get() on nodes stored
         * in the macio chips array
         */