#define APC_OBPNAME "power-management"
#define APC_DEVNAME "apc"
-volatile static u8 __iomem *regs;
+volatile static u8 *regs;
static int apc_regsize;
static int apc_no_idle __initdata = 0;
static inline void apc_free(void)
{
- sbus_iounmap(regs, apc_regsize);
+ sbus_iounmap((unsigned long)regs, apc_regsize);
}
static int apc_open(struct inode *inode, struct file *f)
}
apc_regsize = sdev->reg_addrs[0].reg_size;
- regs = sbus_ioremap(&sdev->resource[0], 0,
+ regs = (u8*) sbus_ioremap(&sdev->resource[0], 0,
apc_regsize, APC_OBPNAME);
- if(!regs) {
+ if(NULL == regs) {
printk(KERN_ERR "%s: unable to map registers\n", APC_DEVNAME);
return -ENODEV;
}