summaryrefslogtreecommitdiff
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2014-10-06 16:34:09 +0400
committerUlf Hansson <ulf.hansson@linaro.org>2014-11-10 14:40:34 +0300
commitfc95e30ba33b9f4faa8630d0762af2548031dc00 (patch)
tree3d4c977a50b22c7604a65615d7ca89bf5a43345e /include/linux/mmc
parenteaaceb6cbf7ef6f480b3f80468beb21eafe82ac0 (diff)
downloadlinux-fc95e30ba33b9f4faa8630d0762af2548031dc00.tar.xz
mmc: block: Use dev_set|get_drvdata()
In most of the cases mmc_get|set_drvdata() didn't simplify code, which should be the primary reason for such macros. Let's remove them and convert to the common device_driver macros, dev_set|get_drvdata() instead. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/card.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h
index cf54afe5d863..64f413676410 100644
--- a/include/linux/mmc/card.h
+++ b/include/linux/mmc/card.h
@@ -510,8 +510,6 @@ static inline int mmc_card_broken_irq_polling(const struct mmc_card *c)
#define mmc_dev_to_card(d) container_of(d, struct mmc_card, dev)
#define mmc_list_to_card(l) container_of(l, struct mmc_card, node)
-#define mmc_get_drvdata(c) dev_get_drvdata(&(c)->dev)
-#define mmc_set_drvdata(c,d) dev_set_drvdata(&(c)->dev, d)
extern int mmc_register_driver(struct device_driver *);
extern void mmc_unregister_driver(struct device_driver *);