summaryrefslogtreecommitdiffstats
path: root/include/linux
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 /include/linux
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 'include/linux')
-rw-r--r--include/linux/mtd/mtd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 219a5279cd..e4ce2ae233 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -193,7 +193,7 @@ struct mtd_info {
int (*_get_device) (struct mtd_info *mtd);
void (*_put_device) (struct mtd_info *mtd);
- struct device_d class_dev;
+ struct device_d dev;
struct cdev cdev;
struct cdev *cdev_bb;