]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sparse: compile fix for rrunner on big-endian platforms
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Tue, 13 Jul 2004 04:01:01 +0000 (21:01 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 13 Jul 2004 04:01:01 +0000 (21:01 -0700)
bitrot strikes again...

drivers/net/rrunner.c

index ef88746b5e4b9fa3e23ed3a2214f1c569ce29ee3..de3a560f159d5434df63c12e4affe5816d4c9509 100644 (file)
@@ -197,7 +197,8 @@ static int __devinit rr_init_one(struct pci_dev *pdev,
         * Don't access any register before this point!
         */
 #ifdef __BIG_ENDIAN
-       writel(readl(&regs->HostCtrl) | NO_SWAP, &regs->HostCtrl);
+       writel(readl(&rrpriv->regs->HostCtrl) | NO_SWAP,
+               &rrpriv->regs->HostCtrl);
 #endif
        /*
         * Need to add a case for little-endian 64-bit hosts here.