Skip to content

Commit

Permalink
mmc: core: Don't export the to_sdio_driver macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
storulf committed Nov 10, 2014
1 parent d99903c commit 433b7b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions drivers/mmc/core/sdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 0 additions & 2 deletions include/linux/mmc/sdio_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 433b7b1

Please sign in to comment.