Searched refs:devptr (Results 1 – 2 of 2) sorted by relevance
181 struct scoop_dev *devptr; in scoop_probe() local190 devptr = kzalloc(sizeof(struct scoop_dev), GFP_KERNEL); in scoop_probe()191 if (!devptr) in scoop_probe()194 spin_lock_init(&devptr->scoop_lock); in scoop_probe()197 devptr->base = ioremap(mem->start, resource_size(mem)); in scoop_probe()199 if (!devptr->base) { in scoop_probe()204 platform_set_drvdata(pdev, devptr); in scoop_probe()206 printk("Sharp Scoop Device found at 0x%08x -> 0x%8p\n",(unsigned int)mem->start, devptr->base); in scoop_probe()208 iowrite16(0x0140, devptr->base + SCOOP_MCR); in scoop_probe()210 iowrite16(0x0000, devptr->base + SCOOP_CPR); in scoop_probe()[all …]
1242 struct device *devptr; in vio_bus_remove() local1249 devptr = get_device(dev); in vio_bus_remove()1257 put_device(devptr); in vio_bus_remove()