summaryrefslogtreecommitdiff
path: root/wct4xxp
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-01-13 20:05:28 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-01-13 20:05:28 +0000
commit905c0014c3982c5a88a2b9d0a0f740d39b979be4 (patch)
treef2221cfe965a0365ebbbc0ba05c120a95cd4f136 /wct4xxp
parent03bc4d9adcce8d0d8c0e9c19eeca815e8c2c7c04 (diff)
Portability update for quad span driver.
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1812 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp')
-rw-r--r--wct4xxp/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wct4xxp/base.c b/wct4xxp/base.c
index 971b957..1ba83ae 100644
--- a/wct4xxp/base.c
+++ b/wct4xxp/base.c
@@ -430,14 +430,14 @@ static struct t4 *cards[MAX_T4_CARDS];
static inline unsigned int __t4_pci_in(struct t4 *wc, const unsigned int addr)
{
- unsigned int res = le32_to_cpu(wc->membase[addr]);
+ unsigned int res = readl(&wc->membase[addr]);
return res;
}
static inline void __t4_pci_out(struct t4 *wc, const unsigned int addr, const unsigned int value)
{
unsigned int tmp;
- wc->membase[addr] = cpu_to_le32(value);
+ writel(value, &wc->membase[addr]);
tmp = __t4_pci_in(wc, WC_VERSION);
if ((tmp & 0xffff0000) != 0xc01a0000)
printk("TE4XXP: Version Synchronization Error!\n");