summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-10-16 17:25:36 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-16 22:46:56 +0200
commit28d294de70f3884285efdde4f021c480744ce3f8 (patch)
treeb67e3db604c57f24be256738f4d79e3b9b2cb646 /drivers/mtd
parentf2f75de27d46e319bd785c79a09ca1347afb981d (diff)
downloadbarebox-28d294de70f3884285efdde4f021c480744ce3f8.tar.gz
barebox-28d294de70f3884285efdde4f021c480744ce3f8.tar.xz
mtd: register device a pure device
as we do not need to probe them and they have no driver or bus attached Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/core.c b/drivers/mtd/core.c
index 7c323a1b3a..a91ef04c48 100644
--- a/drivers/mtd/core.c
+++ b/drivers/mtd/core.c
@@ -225,7 +225,7 @@ int add_mtd_device(struct mtd_info *mtd, char *devname)
devname = "mtd";
strcpy(mtd->class_dev.name, devname);
mtd->class_dev.id = DEVICE_ID_DYNAMIC;
- platform_device_register(&mtd->class_dev);
+ register_device(&mtd->class_dev);
mtd->cdev.ops = &mtd_ops;
mtd->cdev.size = mtd->size;