aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/core/Makefile2
-rw-r--r--drivers/mmc/core/block.c1
-rw-r--r--drivers/mmc/core/card.h2
-rw-r--r--drivers/mmc/core/mmc.c1
-rw-r--r--drivers/mmc/core/quirks.h (renamed from drivers/mmc/core/quirks.c)8
-rw-r--r--drivers/mmc/core/sdio.c1
6 files changed, 6 insertions, 9 deletions
diff --git a/drivers/mmc/core/Makefile b/drivers/mmc/core/Makefile
index 0f81464fa824..7e3ed1aeada2 100644
--- a/drivers/mmc/core/Makefile
+++ b/drivers/mmc/core/Makefile
@@ -7,7 +7,7 @@ mmc_core-y := core.o bus.o host.o \
7 mmc.o mmc_ops.o sd.o sd_ops.o \ 7 mmc.o mmc_ops.o sd.o sd_ops.o \
8 sdio.o sdio_ops.o sdio_bus.o \ 8 sdio.o sdio_ops.o sdio_bus.o \
9 sdio_cis.o sdio_io.o sdio_irq.o \ 9 sdio_cis.o sdio_io.o sdio_irq.o \
10 quirks.o slot-gpio.o 10 slot-gpio.o
11mmc_core-$(CONFIG_OF) += pwrseq.o 11mmc_core-$(CONFIG_OF) += pwrseq.o
12obj-$(CONFIG_PWRSEQ_SIMPLE) += pwrseq_simple.o 12obj-$(CONFIG_PWRSEQ_SIMPLE) += pwrseq_simple.o
13obj-$(CONFIG_PWRSEQ_SD8787) += pwrseq_sd8787.o 13obj-$(CONFIG_PWRSEQ_SD8787) += pwrseq_sd8787.o
diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
index cd909aecfded..6f3a5ff85590 100644
--- a/drivers/mmc/core/block.c
+++ b/drivers/mmc/core/block.c
@@ -52,6 +52,7 @@
52#include "host.h" 52#include "host.h"
53#include "bus.h" 53#include "bus.h"
54#include "mmc_ops.h" 54#include "mmc_ops.h"
55#include "quirks.h"
55#include "sd_ops.h" 56#include "sd_ops.h"
56 57
57MODULE_ALIAS("mmc:block"); 58MODULE_ALIAS("mmc:block");
diff --git a/drivers/mmc/core/card.h b/drivers/mmc/core/card.h
index 95e8fc54eb21..f06cd91964ce 100644
--- a/drivers/mmc/core/card.h
+++ b/drivers/mmc/core/card.h
@@ -218,6 +218,4 @@ static inline int mmc_card_broken_hpi(const struct mmc_card *c)
218 return c->quirks & MMC_QUIRK_BROKEN_HPI; 218 return c->quirks & MMC_QUIRK_BROKEN_HPI;
219} 219}
220 220
221void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table);
222
223#endif 221#endif
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index ad1089c713e5..f830970958e6 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -25,6 +25,7 @@
25#include "host.h" 25#include "host.h"
26#include "bus.h" 26#include "bus.h"
27#include "mmc_ops.h" 27#include "mmc_ops.h"
28#include "quirks.h"
28#include "sd_ops.h" 29#include "sd_ops.h"
29 30
30#define DEFAULT_CMD6_TIMEOUT_MS 500 31#define DEFAULT_CMD6_TIMEOUT_MS 500
diff --git a/drivers/mmc/core/quirks.c b/drivers/mmc/core/quirks.h
index bf25a9c88863..1e56ec4d4085 100644
--- a/drivers/mmc/core/quirks.c
+++ b/drivers/mmc/core/quirks.h
@@ -9,10 +9,6 @@
9 * 9 *
10 */ 10 */
11 11
12#include <linux/types.h>
13#include <linux/kernel.h>
14#include <linux/export.h>
15#include <linux/mmc/card.h>
16#include <linux/mmc/sdio_ids.h> 12#include <linux/mmc/sdio_ids.h>
17 13
18#include "card.h" 14#include "card.h"
@@ -53,7 +49,8 @@ static const struct mmc_fixup mmc_fixup_methods[] = {
53 END_FIXUP 49 END_FIXUP
54}; 50};
55 51
56void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table) 52static inline void mmc_fixup_device(struct mmc_card *card,
53 const struct mmc_fixup *table)
57{ 54{
58 const struct mmc_fixup *f; 55 const struct mmc_fixup *f;
59 u64 rev = cid_rev_card(card); 56 u64 rev = cid_rev_card(card);
@@ -82,4 +79,3 @@ void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table)
82 } 79 }
83 } 80 }
84} 81}
85EXPORT_SYMBOL(mmc_fixup_device);
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index a64a8709ec72..f092a55c5064 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -23,6 +23,7 @@
23#include "card.h" 23#include "card.h"
24#include "host.h" 24#include "host.h"
25#include "bus.h" 25#include "bus.h"
26#include "quirks.h"
26#include "sd.h" 27#include "sd.h"
27#include "sdio_bus.h" 28#include "sdio_bus.h"
28#include "mmc_ops.h" 29#include "mmc_ops.h"