kernel: backport patches simplifying mtd_device_parse_register code