Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62955
b: refs/heads/master
c: 6aa8b04
h: refs/heads/master
i:
  62953: ba59e65
  62951: 84df4c8
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jul 26, 2007
1 parent 7d11ae9 commit 5f20780
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 712aaa1cb1c0a83e5ffb5376e1d7ee3dd539f4e4
refs/heads/master: 6aa8b04975e71fb3d67bec7fbe2995b9bf54a06e
14 changes: 7 additions & 7 deletions trunk/arch/ia64/kernel/cyclone.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ static struct clocksource clocksource_cyclone = {

int __init init_cyclone_clock(void)
{
u64* reg;
u64 __iomem *reg;
u64 base; /* saved cyclone base address */
u64 offset; /* offset from pageaddr to cyclone_timer register */
int i;
u32* volatile cyclone_timer; /* Cyclone MPMC0 register */
u32 __iomem *cyclone_timer; /* Cyclone MPMC0 register */

if (!use_cyclone)
return 0;
Expand All @@ -51,7 +51,7 @@ int __init init_cyclone_clock(void)

/* find base address */
offset = (CYCLONE_CBAR_ADDR);
reg = (u64*)ioremap_nocache(offset, sizeof(u64));
reg = ioremap_nocache(offset, sizeof(u64));
if(!reg){
printk(KERN_ERR "Summit chipset: Could not find valid CBAR"
" register.\n");
Expand All @@ -69,7 +69,7 @@ int __init init_cyclone_clock(void)

/* setup PMCC */
offset = (base + CYCLONE_PMCC_OFFSET);
reg = (u64*)ioremap_nocache(offset, sizeof(u64));
reg = ioremap_nocache(offset, sizeof(u64));
if(!reg){
printk(KERN_ERR "Summit chipset: Could not find valid PMCC"
" register.\n");
Expand All @@ -81,7 +81,7 @@ int __init init_cyclone_clock(void)

/* setup MPCS */
offset = (base + CYCLONE_MPCS_OFFSET);
reg = (u64*)ioremap_nocache(offset, sizeof(u64));
reg = ioremap_nocache(offset, sizeof(u64));
if(!reg){
printk(KERN_ERR "Summit chipset: Could not find valid MPCS"
" register.\n");
Expand All @@ -93,7 +93,7 @@ int __init init_cyclone_clock(void)

/* map in cyclone_timer */
offset = (base + CYCLONE_MPMC_OFFSET);
cyclone_timer = (u32*)ioremap_nocache(offset, sizeof(u32));
cyclone_timer = ioremap_nocache(offset, sizeof(u32));
if(!cyclone_timer){
printk(KERN_ERR "Summit chipset: Could not find valid MPMC"
" register.\n");
Expand All @@ -110,7 +110,7 @@ int __init init_cyclone_clock(void)
printk(KERN_ERR "Summit chipset: Counter not counting!"
" DISABLED\n");
iounmap(cyclone_timer);
cyclone_timer = 0;
cyclone_timer = NULL;
use_cyclone = 0;
return -ENODEV;
}
Expand Down

0 comments on commit 5f20780

Please sign in to comment.