mdev->ofdev.dev.power.power_state = 0; 
mdev->ofdev.dev.power.power_state = PMSG_ON; 
static int __pmac media_bay_resume(struct macio_dev *mdev){	struct media_bay_info	*bay = macio_get_drvdata(mdev);	if (mdev->ofdev.dev.power.power_state != 0) {		mdev->ofdev.dev.power.power_state = 0;	       	/* We re-enable the bay using it's previous content	       	   only if it did not change. Note those bozo timings,	       	   they seem to help the 3400 get it right.	       	 */	       	/* Force MB power to 0 */		down(&bay->lock);	       	set_mb_power(bay, 0);		msleep(MB_POWER_DELAY);	       	if (bay->ops->content(bay) != bay->content_id) {			printk("mediabay%d: content changed during sleep...\n", bay->index);			up(&bay->lock);	       		return 0;		}	       	set_mb_power(bay, 1);	       	bay->last_value = bay->content_id;	       	bay->value_count = msecs_to_jiffies(MB_STABLE_DELAY);	       	bay->timer = msecs_to_jiffies(MB_POWER_DELAY);#ifdef CONFIG_BLK_DEV_IDE	       	bay->cd_retry = 0;#endif	       	do {			msleep(MB_POLL_DELAY);	       		media_bay_step(bay->index);	       	} while((bay->state != mb_empty) &&	       		(bay->state != mb_up));		bay->sleeping = 0;		up(&bay->lock);	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/829ca9a30a2ddb727981d80fabdbff2ea86bc9ea/mediabay.c/clean/drivers/macintosh/mediabay.c