if (pdev->dev.power.power_state == 0) 
if (pdev->dev.power.power_state.event == PM_EVENT_ON) 
static int aty128_do_resume(struct pci_dev *pdev){	struct fb_info *info = pci_get_drvdata(pdev);	struct aty128fb_par *par = info->par;	if (pdev->dev.power.power_state == 0)		return 0;	/* Wakeup chip */	if (pdev->dev.power.power_state == 2)		aty128_set_suspend(par, 0);	par->asleep = 0;	/* Restore display & engine */	aty128_reset_engine(par);	wait_for_idle(par);	aty128fb_set_par(info);	fb_pan_display(info, &info->var);	fb_set_cmap(&info->cmap, info);	/* Refresh */	fb_set_suspend(info, 0);	/* Unblank */	par->lock_blank = 0;	aty128fb_blank(0, info);#ifdef CONFIG_PPC_PMAC	/* On powermac, we have hooks to properly suspend/resume AGP now,	 * use them here. We'll ultimately need some generic support here,	 * but the generic code isn't quite ready for that yet	 */	pmac_resume_agp_for_card(pdev);#endif /* CONFIG_PPC_PMAC */	pdev->dev.power.power_state = PMSG_ON;	printk(KERN_DEBUG "aty128fb: resumed !\n");	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/ca078bae813dd46c0f9b102fdfb4a3384641ff48/aty128fb.c/buggy/drivers/video/aty/aty128fb.c