Lines Matching refs:device
139 struct pps_client_pp *device; in parport_attach() local
151 device = kzalloc(sizeof(struct pps_client_pp), GFP_KERNEL); in parport_attach()
152 if (!device) { in parport_attach()
157 device->pardev = parport_register_device(port, KBUILD_MODNAME, in parport_attach()
158 NULL, NULL, parport_irq, PARPORT_FLAG_EXCL, device); in parport_attach()
159 if (!device->pardev) { in parport_attach()
164 if (parport_claim_or_block(device->pardev) < 0) { in parport_attach()
169 device->pps = pps_register_source(&info, in parport_attach()
171 if (device->pps == NULL) { in parport_attach()
176 device->cw = clear_wait; in parport_attach()
185 parport_release(device->pardev); in parport_attach()
187 parport_unregister_device(device->pardev); in parport_attach()
189 kfree(device); in parport_attach()
195 struct pps_client_pp *device; in parport_detach() local
202 device = pardev->private; in parport_detach()
205 pps_unregister_source(device->pps); in parport_detach()
208 kfree(device); in parport_detach()