summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/devfs-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/devfs-core.c b/fs/devfs-core.c
index eafdc87..455b21a 100644
--- a/fs/devfs-core.c
+++ b/fs/devfs-core.c
@@ -303,7 +303,7 @@ static struct cdev *__devfs_add_partition(struct cdev *cdev,
partinfo->flags, partinfo->name);
if (IS_ERR(mtd))
return (void *)mtd;
- return 0;
+ return &mtd->cdev;
}
new = xzalloc(sizeof(*new));