struct bttv *btv = pci_get_drvdata(pci_dev); 
struct bttv *btv = pci_get_drvdata(pci_dev); 
static int bttv_suspend(struct pci_dev *pci_dev, pm_message_t state){        struct bttv *btv = pci_get_drvdata(pci_dev);	struct bttv_buffer_set idle;	unsigned long flags;	dprintk("bttv%d: suspend %d\n", btv->c.nr, state.event);	/* stop dma + irqs */	spin_lock_irqsave(&btv->s_lock,flags);	memset(&idle, 0, sizeof(idle));	btv->state.video = btv->curr;	btv->state.vbi   = btv->cvbi;	btv->state.loop_irq = btv->loop_irq;	btv->curr = idle;	btv->loop_irq = 0;	bttv_buffer_activate_video(btv, &idle);	bttv_buffer_activate_vbi(btv, NULL);	bttv_set_dma(btv, 0);	btwrite(0, BT848_INT_MASK);	spin_unlock_irqrestore(&btv->s_lock,flags);	/* save bt878 state */	btv->state.gpio_enable = btread(BT848_GPIO_OUT_EN);	btv->state.gpio_data   = gpio_read();	/* save pci state */	pci_save_state(pci_dev);	if (0 != pci_set_power_state(pci_dev, pci_choose_state(pci_dev, state))) {		pci_disable_device(pci_dev);		btv->state.disabled = 1;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ac97914c6c35f6bf132071c718e034d0846b9f5/bttv-driver.c/buggy/drivers/media/video/bttv-driver.c