diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2019-03-06 09:04:54 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2019-04-15 05:55:54 -0400 |
commit | f7f3e7dac802e4ed11f216027fc35c189c3dba7f (patch) | |
tree | 78ea24bcf96c4c0b81d8b191994b26fb08e05fc4 | |
parent | ea27c95a7a47ae7303b28d2bf2c5db461bb002c6 (diff) |
mmc: mmci: Drop qcom specific header file
It seems a bit silly to have a header file to share only the
qcom_variant_init() function. So, let's just drop it and move the
declaration of the function into the common mmci.h instead.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/mmc/host/mmci.c | 1 | ||||
-rw-r--r-- | drivers/mmc/host/mmci.h | 6 | ||||
-rw-r--r-- | drivers/mmc/host/mmci_qcom_dml.h | 26 |
3 files changed, 6 insertions, 27 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 3e5baafb0ce2..e11fc5019535 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c | |||
@@ -43,7 +43,6 @@ | |||
43 | #include <asm/io.h> | 43 | #include <asm/io.h> |
44 | 44 | ||
45 | #include "mmci.h" | 45 | #include "mmci.h" |
46 | #include "mmci_qcom_dml.h" | ||
47 | 46 | ||
48 | #define DRIVER_NAME "mmci-pl18x" | 47 | #define DRIVER_NAME "mmci-pl18x" |
49 | 48 | ||
diff --git a/drivers/mmc/host/mmci.h b/drivers/mmc/host/mmci.h index b368ed3acc29..a76fe1085757 100644 --- a/drivers/mmc/host/mmci.h +++ b/drivers/mmc/host/mmci.h | |||
@@ -441,3 +441,9 @@ int mmci_dmae_start(struct mmci_host *host, unsigned int *datactrl); | |||
441 | void mmci_dmae_finalize(struct mmci_host *host, struct mmc_data *data); | 441 | void mmci_dmae_finalize(struct mmci_host *host, struct mmc_data *data); |
442 | void mmci_dmae_error(struct mmci_host *host); | 442 | void mmci_dmae_error(struct mmci_host *host); |
443 | #endif | 443 | #endif |
444 | |||
445 | #ifdef CONFIG_MMC_QCOM_DML | ||
446 | void qcom_variant_init(struct mmci_host *host); | ||
447 | #else | ||
448 | static inline void qcom_variant_init(struct mmci_host *host) {} | ||
449 | #endif | ||
diff --git a/drivers/mmc/host/mmci_qcom_dml.h b/drivers/mmc/host/mmci_qcom_dml.h deleted file mode 100644 index 7e87eb9c4238..000000000000 --- a/drivers/mmc/host/mmci_qcom_dml.h +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | /* | ||
2 | * | ||
3 | * Copyright (c) 2011, The Linux Foundation. All rights reserved. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 and | ||
7 | * only version 2 as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | */ | ||
15 | #ifndef __MMC_QCOM_DML_H__ | ||
16 | #define __MMC_QCOM_DML_H__ | ||
17 | |||
18 | #ifdef CONFIG_MMC_QCOM_DML | ||
19 | void qcom_variant_init(struct mmci_host *host); | ||
20 | #else | ||
21 | static inline void qcom_variant_init(struct mmci_host *host) | ||
22 | { | ||
23 | } | ||
24 | #endif /* CONFIG_MMC_QCOM_DML */ | ||
25 | |||
26 | #endif /* __MMC_QCOM_DML_H__ */ | ||