Searched refs:devptr (Results 1 – 2 of 2) sorted by relevance
177 struct scoop_dev *devptr; in scoop_probe() local185 devptr = kzalloc(sizeof(struct scoop_dev), GFP_KERNEL); in scoop_probe()186 if (!devptr) in scoop_probe()189 spin_lock_init(&devptr->scoop_lock); in scoop_probe()192 devptr->base = ioremap(mem->start, resource_size(mem)); in scoop_probe()194 if (!devptr->base) { in scoop_probe()199 platform_set_drvdata(pdev, devptr); in scoop_probe()201 printk("Sharp Scoop Device found at 0x%08x -> 0x%8p\n",(unsigned int)mem->start, devptr->base); in scoop_probe()203 iowrite16(0x0140, devptr->base + SCOOP_MCR); in scoop_probe()205 iowrite16(0x0000, devptr->base + SCOOP_CPR); in scoop_probe()[all …]
1265 struct device *devptr; in vio_bus_remove() local1271 devptr = get_device(dev); in vio_bus_remove()1279 put_device(devptr); in vio_bus_remove()