diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-10-06 07:51:40 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-11-10 06:40:33 -0500 |
commit | 6685ac62b2f08fcff77dc35c6b8bff1b74aaa408 (patch) | |
tree | 8fb75914fa7c3bea075f659b1f40524317e47a0c /include/linux/mmc | |
parent | 0967edc6ef5c3c181cabde3178ea9f33e5130e4a (diff) |
mmc: core: Convert mmc_driver to device_driver
The struct mmc_driver adds an extra layer on top of the struct
device_driver. That would be fine, if there were a good reason, but
that's not the case.
Let's simplify code by converting to the common struct device_driver
instead and thus also removing superfluous overhead.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/card.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index b0692d28f8e6..cf54afe5d863 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h | |||
@@ -513,20 +513,8 @@ static inline int mmc_card_broken_irq_polling(const struct mmc_card *c) | |||
513 | #define mmc_get_drvdata(c) dev_get_drvdata(&(c)->dev) | 513 | #define mmc_get_drvdata(c) dev_get_drvdata(&(c)->dev) |
514 | #define mmc_set_drvdata(c,d) dev_set_drvdata(&(c)->dev, d) | 514 | #define mmc_set_drvdata(c,d) dev_set_drvdata(&(c)->dev, d) |
515 | 515 | ||
516 | /* | 516 | extern int mmc_register_driver(struct device_driver *); |
517 | * MMC device driver (e.g., Flash card, I/O card...) | 517 | extern void mmc_unregister_driver(struct device_driver *); |
518 | */ | ||
519 | struct mmc_driver { | ||
520 | struct device_driver drv; | ||
521 | int (*probe)(struct mmc_card *); | ||
522 | void (*remove)(struct mmc_card *); | ||
523 | int (*suspend)(struct mmc_card *); | ||
524 | int (*resume)(struct mmc_card *); | ||
525 | void (*shutdown)(struct mmc_card *); | ||
526 | }; | ||
527 | |||
528 | extern int mmc_register_driver(struct mmc_driver *); | ||
529 | extern void mmc_unregister_driver(struct mmc_driver *); | ||
530 | 518 | ||
531 | extern void mmc_fixup_device(struct mmc_card *card, | 519 | extern void mmc_fixup_device(struct mmc_card *card, |
532 | const struct mmc_fixup *table); | 520 | const struct mmc_fixup *table); |