aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/r852.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/r852.c')
-rw-r--r--drivers/mtd/nand/r852.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c
index 96bfbd8e8fdb..6dfbb4713162 100644
--- a/drivers/mtd/nand/r852.c
+++ b/drivers/mtd/nand/r852.c
@@ -666,7 +666,7 @@ int r852_register_nand_device(struct r852_device *dev)
666 666
667 r852_engine_enable(dev); 667 r852_engine_enable(dev);
668 668
669 if (sm_register_device(dev->mtd)) 669 if (sm_register_device(dev->mtd, dev->sm))
670 goto error2; 670 goto error2;
671 671
672 if (device_create_file(&dev->mtd->dev, &dev_attr_media_type)) 672 if (device_create_file(&dev->mtd->dev, &dev_attr_media_type))