diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2015-10-05 15:31:18 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-10-26 11:00:05 -0400 |
commit | 659c9bc114a810b3a3c1e50585cc57f1312a6d60 (patch) | |
tree | 2f3a0b2f7c6dec30127d6b4a3630e7fec50a7d28 | |
parent | 0de9125fa823e526c9f68dc0987aae342ec94cbd (diff) |
mmc: sdhci-pci: Build o2micro support in the same module
sdhci-pci-o2micro.c contains no initialisation and its functions are only
called from shdci-pci.c, so there is no reason for it to be a separate
module, let alone or for it to always be built-in.
- Rename sdhci-pci.c to sdhci-pci-core.c so that the sdhci-pci module
can be built from multiple source files
- Add sdhci-pci-o2micro.c to it
- Remove redundant exports
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/host/Makefile | 2 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-pci-core.c (renamed from drivers/mmc/host/sdhci-pci.c) | 0 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-pci-o2micro.c | 4 |
3 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile index 4f3452afa6ca..3595f83e89dd 100644 --- a/drivers/mmc/host/Makefile +++ b/drivers/mmc/host/Makefile | |||
@@ -9,8 +9,8 @@ obj-$(CONFIG_MMC_MXC) += mxcmmc.o | |||
9 | obj-$(CONFIG_MMC_MXS) += mxs-mmc.o | 9 | obj-$(CONFIG_MMC_MXS) += mxs-mmc.o |
10 | obj-$(CONFIG_MMC_SDHCI) += sdhci.o | 10 | obj-$(CONFIG_MMC_SDHCI) += sdhci.o |
11 | obj-$(CONFIG_MMC_SDHCI_PCI) += sdhci-pci.o | 11 | obj-$(CONFIG_MMC_SDHCI_PCI) += sdhci-pci.o |
12 | sdhci-pci-y += sdhci-pci-core.o sdhci-pci-o2micro.o | ||
12 | obj-$(subst m,y,$(CONFIG_MMC_SDHCI_PCI)) += sdhci-pci-data.o | 13 | obj-$(subst m,y,$(CONFIG_MMC_SDHCI_PCI)) += sdhci-pci-data.o |
13 | obj-$(subst m,y,$(CONFIG_MMC_SDHCI_PCI)) += sdhci-pci-o2micro.o | ||
14 | obj-$(CONFIG_MMC_SDHCI_ACPI) += sdhci-acpi.o | 14 | obj-$(CONFIG_MMC_SDHCI_ACPI) += sdhci-acpi.o |
15 | obj-$(CONFIG_MMC_SDHCI_PXAV3) += sdhci-pxav3.o | 15 | obj-$(CONFIG_MMC_SDHCI_PXAV3) += sdhci-pxav3.o |
16 | obj-$(CONFIG_MMC_SDHCI_PXAV2) += sdhci-pxav2.o | 16 | obj-$(CONFIG_MMC_SDHCI_PXAV2) += sdhci-pxav2.o |
diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci-core.c index b3b0a3e4fca1..b3b0a3e4fca1 100644 --- a/drivers/mmc/host/sdhci-pci.c +++ b/drivers/mmc/host/sdhci-pci-core.c | |||
diff --git a/drivers/mmc/host/sdhci-pci-o2micro.c b/drivers/mmc/host/sdhci-pci-o2micro.c index e2ec108dba0e..9a5e1917b266 100644 --- a/drivers/mmc/host/sdhci-pci-o2micro.c +++ b/drivers/mmc/host/sdhci-pci-o2micro.c | |||
@@ -145,7 +145,6 @@ void sdhci_pci_o2_fujin2_pci_init(struct sdhci_pci_chip *chip) | |||
145 | scratch_32 |= 0x00080000; | 145 | scratch_32 |= 0x00080000; |
146 | pci_write_config_dword(chip->pdev, O2_SD_MISC_CTRL4, scratch_32); | 146 | pci_write_config_dword(chip->pdev, O2_SD_MISC_CTRL4, scratch_32); |
147 | } | 147 | } |
148 | EXPORT_SYMBOL_GPL(sdhci_pci_o2_fujin2_pci_init); | ||
149 | 148 | ||
150 | int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot) | 149 | int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot) |
151 | { | 150 | { |
@@ -179,7 +178,6 @@ int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot) | |||
179 | 178 | ||
180 | return 0; | 179 | return 0; |
181 | } | 180 | } |
182 | EXPORT_SYMBOL_GPL(sdhci_pci_o2_probe_slot); | ||
183 | 181 | ||
184 | int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) | 182 | int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) |
185 | { | 183 | { |
@@ -385,11 +383,9 @@ int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) | |||
385 | 383 | ||
386 | return 0; | 384 | return 0; |
387 | } | 385 | } |
388 | EXPORT_SYMBOL_GPL(sdhci_pci_o2_probe); | ||
389 | 386 | ||
390 | int sdhci_pci_o2_resume(struct sdhci_pci_chip *chip) | 387 | int sdhci_pci_o2_resume(struct sdhci_pci_chip *chip) |
391 | { | 388 | { |
392 | sdhci_pci_o2_probe(chip); | 389 | sdhci_pci_o2_probe(chip); |
393 | return 0; | 390 | return 0; |
394 | } | 391 | } |
395 | EXPORT_SYMBOL_GPL(sdhci_pci_o2_resume); | ||