Commit a0975992 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] isurf iomem annotations

Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5f432304
......@@ -751,8 +751,8 @@ struct hfcD_hw {
struct isurf_hw {
unsigned int reset;
unsigned long phymem;
unsigned long isac;
unsigned long isar;
void __iomem *isac;
void __iomem *isar;
struct isar_reg isar_r;
};
......
......@@ -126,7 +126,7 @@ void
release_io_isurf(struct IsdnCardState *cs)
{
release_region(cs->hw.isurf.reset, 1);
iounmap((unsigned char *)cs->hw.isurf.isar);
iounmap(cs->hw.isurf.isar);
release_mem_region(cs->hw.isurf.phymem, ISURF_IOMEM_SIZE);
}
......@@ -272,8 +272,7 @@ setup_isurf(struct IsdnCard *card)
release_region(cs->hw.isurf.reset, 1);
return (0);
}
cs->hw.isurf.isar =
(unsigned long) ioremap(cs->hw.isurf.phymem, ISURF_IOMEM_SIZE);
cs->hw.isurf.isar = ioremap(cs->hw.isurf.phymem, ISURF_IOMEM_SIZE);
cs->hw.isurf.isac = cs->hw.isurf.isar + ISURF_ISAC_OFFSET;
printk(KERN_INFO
"ISurf: defined at 0x%x 0x%lx IRQ %d\n",
......
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