summaryrefslogtreecommitdiff
path: root/include/mtd.h
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-09-29 12:58:23 +0200
committerJagan Teki <jagan@amarulasolutions.com>2018-10-02 22:12:21 +0530
commit739def7253c4b782bcb9cc816edf3b2f2aeafb4e (patch)
tree9f820d2d8a09e5442124540791f155e7ab5156cc /include/mtd.h
parentd60aea94e92a8783e95591b7eeaf733903eeaec7 (diff)
downloadu-boot-739def7253c4b782bcb9cc816edf3b2f2aeafb4e.tar.gz
u-boot-739def7253c4b782bcb9cc816edf3b2f2aeafb4e.tar.bz2
u-boot-739def7253c4b782bcb9cc816edf3b2f2aeafb4e.zip
dm: drop unused helper in MTD header
include/mtd.h might be included by files even if CONFIG_DM is not enabled. In this case, the call to dev_get_uclass_priv() would trigger a build error. Because this helper has no user, let's drop it off. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'include/mtd.h')
-rw-r--r--include/mtd.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/mtd.h b/include/mtd.h
index 548e7f191b..9e5c807294 100644
--- a/include/mtd.h
+++ b/include/mtd.h
@@ -8,15 +8,4 @@
#include <linux/mtd/mtd.h>
-/*
- * Get mtd_info structure of the dev, which is stored as uclass private.
- *
- * @dev: The MTD device
- * @return: pointer to mtd_info, NULL on error
- */
-static inline struct mtd_info *mtd_get_info(struct udevice *dev)
-{
- return dev_get_uclass_priv(dev);
-}
-
#endif /* _MTD_H_ */