diff options
-rw-r--r-- | drivers/mmc/card/block.c | 2 | ||||
-rw-r--r-- | drivers/mmc/core/bus.c | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 513eb09a638f..fe8041e619ea 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c | |||
@@ -41,6 +41,8 @@ | |||
41 | 41 | ||
42 | #include "queue.h" | 42 | #include "queue.h" |
43 | 43 | ||
44 | MODULE_ALIAS("mmc:block"); | ||
45 | |||
44 | /* | 46 | /* |
45 | * max 8 partitions per card | 47 | * max 8 partitions per card |
46 | */ | 48 | */ |
diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c index f210a8ee6861..bdb165f93046 100644 --- a/drivers/mmc/core/bus.c +++ b/drivers/mmc/core/bus.c | |||
@@ -84,6 +84,14 @@ mmc_bus_uevent(struct device *dev, struct kobj_uevent_env *env) | |||
84 | } | 84 | } |
85 | 85 | ||
86 | retval = add_uevent_var(env, "MMC_NAME=%s", mmc_card_name(card)); | 86 | retval = add_uevent_var(env, "MMC_NAME=%s", mmc_card_name(card)); |
87 | if (retval) | ||
88 | return retval; | ||
89 | |||
90 | /* | ||
91 | * Request the mmc_block device. Note: that this is a direct request | ||
92 | * for the module it carries no information as to what is inserted. | ||
93 | */ | ||
94 | retval = add_uevent_var(env, "MODALIAS=mmc:block"); | ||
87 | 95 | ||
88 | return retval; | 96 | return retval; |
89 | } | 97 | } |