diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-10-06 11:00:15 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-11-10 12:40:32 +0100 |
commit | 433b7b1210a4ece4f2b4f1b04f31a2f0928c8aa8 (patch) | |
tree | 591b25cc091974b3ee4413e05c9afcacd1e7e272 | |
parent | d99903ca4c89c3aa325845cf87ff249d0b432261 (diff) | |
download | linux-433b7b1210a4ece4f2b4f1b04f31a2f0928c8aa8.tar.gz linux-433b7b1210a4ece4f2b4f1b04f31a2f0928c8aa8.tar.bz2 linux-433b7b1210a4ece4f2b4f1b04f31a2f0928c8aa8.zip |
mmc: core: Don't export the to_sdio_driver macro
The macro is only used by the mmc core, so let's move it in there.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/core/sdio_bus.c | 2 | ||||
-rw-r--r-- | include/linux/mmc/sdio_func.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index f09040bf5484..51e23f502108 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c @@ -26,6 +26,8 @@ #include "sdio_cis.h" #include "sdio_bus.h" +#define to_sdio_driver(d) container_of(d, struct sdio_driver, drv) + /* show configuration fields */ #define sdio_config_attr(field, format_string) \ static ssize_t \ diff --git a/include/linux/mmc/sdio_func.h b/include/linux/mmc/sdio_func.h index 50f0bc952328..aab032a6ae61 100644 --- a/include/linux/mmc/sdio_func.h +++ b/include/linux/mmc/sdio_func.h @@ -84,8 +84,6 @@ struct sdio_driver { struct device_driver drv; }; -#define to_sdio_driver(d) container_of(d, struct sdio_driver, drv) - /** * SDIO_DEVICE - macro used to describe a specific SDIO device * @vend: the 16 bit manufacturer code |