mmc: core: Don't export the to_sdio_driver macro
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 6 Oct 2014 09:00:15 +0000 (11:00 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Nov 2014 11:40:32 +0000 (12:40 +0100)
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>
drivers/mmc/core/sdio_bus.c
include/linux/mmc/sdio_func.h

index f09040bf54844fb95e0c575f4870a87a1d9530dc..51e23f50210864904bb589f683e86100c4255f86 100644 (file)
@@ -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                                                         \
index 50f0bc952328ba0eefdb901f31424821a8765539..aab032a6ae6124de63b7934f49d0dc564b0d2dc3 100644 (file)
@@ -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