#ifdef CONFIG_IEEE1394_PCILYNX_PORTS pci_free_consistent(lynx->dev, 65536, lynx->mem_dma_buffer, lynx->mem_dma_buffer_dma); #endif 
static void remove_card(struct pci_dev *dev){        struct ti_lynx *lynx;	struct device *lynx_dev;        int i;        lynx = pci_get_drvdata(dev);        if (!lynx) return;        pci_set_drvdata(dev, NULL);	lynx_dev = get_device(&lynx->host->device);        switch (lynx->state) {        case is_host:                reg_write(lynx, PCI_INT_ENABLE, 0);                hpsb_remove_host(lynx->host);        case have_intr:                reg_write(lynx, PCI_INT_ENABLE, 0);                free_irq(lynx->dev->irq, lynx);		/* Disable IRM Contender and LCtrl */		if (lynx->phyic.reg_1394a)			set_phy_reg(lynx, 4, ~0xc0 & get_phy_reg(lynx, 4));		/* Let all other nodes know to ignore us */		lynx_devctl(lynx->host, RESET_BUS, LONG_RESET_NO_FORCE_ROOT);        case have_iomappings:                reg_set_bits(lynx, MISC_CONTROL, MISC_CONTROL_SWRESET);                /* Fix buggy cards with autoboot pin not tied low: */                reg_write(lynx, DMA0_CHAN_CTRL, 0);                iounmap(lynx->registers);                iounmap(lynx->local_rom);                iounmap(lynx->local_ram);                iounmap(lynx->aux_port);        case have_1394_buffers:                for (i = 0; i < ISORCV_PAGES; i++) {                        if (lynx->iso_rcv.page[i]) {                                pci_free_consistent(lynx->dev, PAGE_SIZE,                                                    lynx->iso_rcv.page[i],                                                    lynx->iso_rcv.page_dma[i]);                        }                }                pci_free_consistent(lynx->dev, PAGE_SIZE, lynx->rcv_page,                                    lynx->rcv_page_dma);        case have_aux_buf:#ifdef CONFIG_IEEE1394_PCILYNX_PORTS                pci_free_consistent(lynx->dev, 65536, lynx->mem_dma_buffer,                                    lynx->mem_dma_buffer_dma);#endif        case have_pcl_mem:#ifndef CONFIG_IEEE1394_PCILYNX_LOCALRAM                pci_free_consistent(lynx->dev, LOCALRAM_SIZE, lynx->pcl_mem,                                    lynx->pcl_mem_dma);#endif        case clear:                /* do nothing - already freed */                ;        }	tasklet_kill(&lynx->iso_rcv.tq);	if (lynx_dev)		put_device(lynx_dev);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/f72cd138e6afc6d93a8e0aacb7e3160cf04d840b/pcilynx.c/clean/drivers/ieee1394/pcilynx.c