Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 398
b: refs/heads/master
c: 28a6815
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Apr 24, 2005
1 parent 70b922a commit 0f5540a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef0299bf8e868c09bff13e6f3c4fc9b835f60471
refs/heads/master: 28a6815979b4eff29956549d62f72582a81f041e
7 changes: 3 additions & 4 deletions trunk/arch/ppc/platforms/pmac_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ int __init
via_calibrate_decr(void)
{
struct device_node *vias;
volatile unsigned char *via;
volatile unsigned char __iomem *via;
int count = VIA_TIMER_FREQ_6 / 100;
unsigned int dstart, dend;

Expand All @@ -176,8 +176,7 @@ via_calibrate_decr(void)
vias = find_devices("via");
if (vias == 0 || vias->n_addrs == 0)
return 0;
via = (volatile unsigned char *)
ioremap(vias->addrs[0].address, vias->addrs[0].size);
via = ioremap(vias->addrs[0].address, vias->addrs[0].size);

/* set timer 1 for continuous interrupts */
out_8(&via[ACR], (via[ACR] & ~T1MODE) | T1MODE_CONT);
Expand All @@ -202,7 +201,7 @@ via_calibrate_decr(void)
printk(KERN_INFO "via_calibrate_decr: ticks per jiffy = %u (%u ticks)\n",
tb_ticks_per_jiffy, dstart - dend);

iounmap((void*)via);
iounmap(via);

return 1;
}
Expand Down

0 comments on commit 0f5540a

Please sign in to comment.