dm: drop unused helper in MTD header
authorMiquel Raynal <miquel.raynal@bootlin.com>
Sat, 29 Sep 2018 10:58:23 +0000 (12:58 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 2 Oct 2018 16:42:21 +0000 (22:12 +0530)
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>
include/mtd.h

index 548e7f191b53c04977c829439a7a86b0bc3a03bd..9e5c807294bfa3f11e122c622c44e3ab292420f2 100644 (file)
@@ -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_ */