/* This routine ensures that the EDAC memory controller reporting method is mapped to a sane value as the EDAC core defines the value to EDAC_OPSTATE_INVAL by default. We don't call the global opstate_init as that defaults to polling and we want interrupt as the default.  */
static void __init ppc4xx_edac_opstate_init(void)
/* This routine ensures that the EDAC memory controller reporting method is mapped to a sane value as the EDAC core defines the value to EDAC_OPSTATE_INVAL by default. We don't call the global opstate_init as that defaults to polling and we want interrupt as the default.  */
static void __init ppc4xx_edac_opstate_init(void)
{
	switch (edac_op_state) {
	case EDAC_OPSTATE_POLL:
	case EDAC_OPSTATE_INT:
		break;
	default:
		edac_op_state = EDAC_OPSTATE_INT;
		break;
	}
	ppc4xx_edac_printk(KERN_INFO, "Reporting type: %s\n",
			   ((edac_op_state == EDAC_OPSTATE_POLL) ?
			    EDAC_OPSTATE_POLL_STR :
			    ((edac_op_state == EDAC_OPSTATE_INT) ?
			     EDAC_OPSTATE_INT_STR :
			     EDAC_OPSTATE_UNKNOWN_STR)));
}