summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_denali.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-10-30 08:42:28 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-11-09 23:03:58 +0100
commitcf348c5510bb07f213f7b725b26e7fc0c79dc36e (patch)
treefbaaedc283d8571bd1af2e6d3ad2ca5178919caa /drivers/mtd/nand/nand_denali.c
parent10227d518c8a967e5cc552d24545e0ca2c59f84e (diff)
downloadbarebox-cf348c5510bb07f213f7b725b26e7fc0c79dc36e.tar.gz
barebox-cf348c5510bb07f213f7b725b26e7fc0c79dc36e.tar.xz
mtd: rename class_dev to dev
The mtds own device is named 'dev' in the Kernel whereas it's named 'class_dev' in barebox. Rename it to 'dev' for better compatilibility to the Kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/nand/nand_denali.c')
-rw-r--r--drivers/mtd/nand/nand_denali.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_denali.c b/drivers/mtd/nand/nand_denali.c
index ba3a307c62..629281061b 100644
--- a/drivers/mtd/nand/nand_denali.c
+++ b/drivers/mtd/nand/nand_denali.c
@@ -1396,7 +1396,7 @@ int denali_init(struct denali_nand_info *denali)
if (!denali->buf.buf)
return -ENOMEM;
- mtd->class_dev.parent = denali->dev;
+ mtd->dev.parent = denali->dev;
denali_hw_init(denali);
denali_drv_init(denali);