瀏覽代碼

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>
Ulf Hansson 11 年之前
父節點
當前提交
433b7b1210
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 2 0
      drivers/mmc/core/sdio_bus.c
  2. 0 2
      include/linux/mmc/sdio_func.h

+ 2 - 0
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								\

+ 0 - 2
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