Commit 237e409d authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] sparse: compile fix for rrunner on big-endian platforms

bitrot strikes again...
parent ebabc32d
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment