/* This is the generic access method when the chip is memory-mapped  */
static void m48t59_mem_writeb(struct device *dev, u32 ofs, u8 val)
/* This is the generic access method when the chip is memory-mapped  */
static void m48t59_mem_writeb(struct device *dev, u32 ofs, u8 val)
{
	struct platform_device *pdev = to_platform_device(dev);
	struct m48t59_private *m48t59 = platform_get_drvdata(pdev);
	writeb(val, m48t59->ioaddr+ofs);
}