summaryrefslogtreecommitdiff
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2011-12-29 20:00:29 +0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 22:25:57 +0400
commitd5de20a9a1c5ad68c07e017d11f6dbb5e289750c (patch)
treedd6b80205261e84e2043f169b199081208bfe47d /include/linux/mtd
parent30fa98480b782999248ce8290136aa58f22536cf (diff)
downloadlinux-d5de20a9a1c5ad68c07e017d11f6dbb5e289750c.tar.xz
mtd: kill dev_to_mtd helper
... since it is not needed because the generic 'dev_get_drvdata()' can be used instead. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/mtd.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index a09077aca45b..cb33cc12e18f 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -422,11 +422,6 @@ static inline int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs)
return mtd->block_markbad(mtd, ofs);
}
-static inline struct mtd_info *dev_to_mtd(struct device *dev)
-{
- return dev ? dev_get_drvdata(dev) : NULL;
-}
-
static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd)
{
if (mtd->erasesize_shift)