Skip to content

Commit

Permalink
[PATCH] sparc: vfc __iomem annotations and fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Dec 15, 2005
1 parent f8ad23a commit b7c690b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/sbus/char/vfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ struct vfc_regs {


struct vfc_dev {
volatile struct vfc_regs *regs;
volatile struct vfc_regs __iomem *regs;
struct vfc_regs *phys_regs;
unsigned int control_reg;
struct semaphore device_lock_sem;
Expand Down
6 changes: 3 additions & 3 deletions drivers/sbus/char/vfc_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int init_vfc_device(struct sbus_dev *sdev,struct vfc_dev *dev, int instance)
}
printk("Initializing vfc%d\n",instance);
dev->regs = NULL;
dev->regs = (volatile struct vfc_regs *)
dev->regs = (volatile struct vfc_regs __iomem *)
sbus_ioremap(&sdev->resource[0], 0,
sizeof(struct vfc_regs), vfcstr);
dev->which_io = sdev->reg_addrs[0].which_io;
Expand Down Expand Up @@ -319,7 +319,7 @@ int vfc_capture_poll(struct vfc_dev *dev)
int timeout = 1000;

while (!timeout--) {
if (dev->regs->control & VFC_STATUS_CAPTURE)
if (sbus_readl(&dev->regs->control) & VFC_STATUS_CAPTURE)
break;
vfc_i2c_delay_no_busy(dev, 100);
}
Expand Down Expand Up @@ -718,7 +718,7 @@ static void deinit_vfc_device(struct vfc_dev *dev)
if(dev == NULL)
return;
devfs_remove("vfc/%d", dev->instance);
sbus_iounmap((unsigned long)dev->regs, sizeof(struct vfc_regs));
sbus_iounmap(dev->regs, sizeof(struct vfc_regs));
kfree(dev);
}

Expand Down

0 comments on commit b7c690b

Please sign in to comment.