mtd: orion_nand.c: add error handling and use resource_size()