mtd: nand: fsmc: Fixes and cleanup for fsmc_nand_switch_ecc()