 /* Remove the register attributes */ device_remove_file(&dev->dev, &dev_attr_yenta_registers); 
static void yenta_close(struct pci_dev *dev){	struct yenta_socket *sock = pci_get_drvdata(dev);	/* we don't want a dying socket registered */	pcmcia_unregister_socket(&sock->socket);		/* Disable all events so we don't die in an IRQ storm */	cb_writel(sock, CB_SOCKET_MASK, 0x0);	exca_writeb(sock, I365_CSCINT, 0);	if (sock->cb_irq)		free_irq(sock->cb_irq, sock);	else		del_timer_sync(&sock->poll_timer);	if (sock->base)		iounmap(sock->base);	yenta_free_resources(sock);	pci_release_regions(dev);	pci_disable_device(dev);	pci_set_drvdata(dev, NULL);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/030ee39c0fef49d7dcd32e71b1ca98fcc23e2a72/yenta_socket.c/buggy/drivers/pcmcia/yenta_socket.c