diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mmc/host.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index ded401703762..2e0fe623df90 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h | |||
| @@ -267,5 +267,13 @@ static inline void mmc_set_disable_delay(struct mmc_host *host, | |||
| 267 | host->disable_delay = disable_delay; | 267 | host->disable_delay = disable_delay; |
| 268 | } | 268 | } |
| 269 | 269 | ||
| 270 | /* Module parameter */ | ||
| 271 | extern int mmc_assume_removable; | ||
| 272 | |||
| 273 | static inline int mmc_card_is_removable(struct mmc_host *host) | ||
| 274 | { | ||
| 275 | return !(host->caps & MMC_CAP_NONREMOVABLE) && mmc_assume_removable; | ||
| 276 | } | ||
| 277 | |||
| 270 | #endif | 278 | #endif |
| 271 | 279 | ||
