kernel: drop unneeded modification of mtd_add_partition function