/* Returns true if the specified bank has an ECC error; otherwise, false.  */
static bool ppc4xx_edac_check_bank_error(const struct ppc4xx_ecc_status *status, unsigned int bank)
/* Returns true if the specified bank has an ECC error; otherwise, false.  */
static bool ppc4xx_edac_check_bank_error(const struct ppc4xx_ecc_status *status, unsigned int bank)
{
	switch (bank) {
	case 0:
		return status->ecces & SDRAM_ECCES_BK0ER;
	case 1:
		return status->ecces & SDRAM_ECCES_BK1ER;
	default:
		return false;
	}
}