if (slot->type == HOTPLUG) { rc = rtas_get_power_level(slot->power_domain, &level); if (!rc) { dbg("%s the power level of slot %s(pwd-domain:0x%x) is %d\n", __FUNCTION__, slot->name, slot->power_domain, level); *value = level; } else err("failed to get power-level for slot(%s), rc=0x%x\n", slot->location, rc); } else { dbg("%s report POWER_ON for EMBEDDED or PHB slot %s\n", __FUNCTION__, slot->location); *value = (u8) POWER_ON; 
rc = rtas_get_power_level(slot->power_domain, &level); if (rc < 0) { err("failed to get power-level for slot(%s), rc=0x%x\n", slot->location, rc); return rc; 
int rpaphp_get_power_status(struct slot *slot, u8 * value){	int rc = 0, level;		if (slot->type == HOTPLUG) {		rc = rtas_get_power_level(slot->power_domain, &level);		if (!rc) {			dbg("%s the power level of slot %s(pwd-domain:0x%x) is %d\n",				__FUNCTION__, slot->name, slot->power_domain, level);			*value = level;		} else			err("failed to get power-level for slot(%s), rc=0x%x\n",				slot->location, rc);	} else {		dbg("%s report POWER_ON for EMBEDDED or PHB slot %s\n",			__FUNCTION__, slot->location);		*value = (u8) POWER_ON;	}	return rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/56d8456b06ad1316bff3c75caed5e06e786f20d8/rpaphp_slot.c/clean/drivers/pci/hotplug/rpaphp_slot.c