devfs-core: return new cdev also for mtd partitions
__devfs_add_partition returns the newly created cdev, but in case
of mtd partitions it accidently returns 0. Fix this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 80bfa0b commit e6410cd9c4aa70d22fe23299040622da1bc68d24
@Sascha Hauer Sascha Hauer authored on 9 Apr 2014
Showing 1 changed file
View
fs/devfs-core.c