unsigned long regs = mstk48t02_regs; 
void * __iomem regs = mstk48t02_regs; 
static int __init has_low_battery(void){	unsigned long regs = mstk48t02_regs;	u8 data1, data2;	spin_lock_irq(&mostek_lock);	data1 = mostek_read(regs + MOSTEK_EEPROM);	/* Read some data. */	mostek_write(regs + MOSTEK_EEPROM, ~data1);	/* Write back the complement. */	data2 = mostek_read(regs + MOSTEK_EEPROM);	/* Read back the complement. */	mostek_write(regs + MOSTEK_EEPROM, data1);	/* Restore original value. */	spin_unlock_irq(&mostek_lock);	return (data1 == data2);	/* Was the write blocked? */}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b4bca26c0160f48b4eb04f21d31a229832732013/time.c/buggy/arch/sparc64/kernel/time.c