From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miquel Raynal Date: Sat, 29 Sep 2018 12:58:23 +0200 Subject: [U-Boot] [PATCH v12 1/8] dm: drop unused helper in MTD header In-Reply-To: <20180929105830.13530-1-miquel.raynal@bootlin.com> References: <20180929105830.13530-1-miquel.raynal@bootlin.com> Message-ID: <20180929105830.13530-2-miquel.raynal@bootlin.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- include/mtd.h | 11 ----------- 1 file changed, 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 -/* - * 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_ */ -- 2.17.1