diff options
-rw-r--r-- | drivers/mmc/mmc_sysfs.c | 3 | ||||
-rw-r--r-- | include/linux/mmc/host.h | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mmc/mmc_sysfs.c b/drivers/mmc/mmc_sysfs.c index 96c192057df3..34fa4a3a02d5 100644 --- a/drivers/mmc/mmc_sysfs.c +++ b/drivers/mmc/mmc_sysfs.c | |||
@@ -263,10 +263,9 @@ int mmc_add_host_sysfs(struct mmc_host *host) | |||
263 | { | 263 | { |
264 | static unsigned int host_num; | 264 | static unsigned int host_num; |
265 | 265 | ||
266 | snprintf(host->host_name, sizeof(host->host_name), | 266 | snprintf(host->class_dev.class_id, BUS_ID_SIZE, |
267 | "mmc%d", host_num++); | 267 | "mmc%d", host_num++); |
268 | 268 | ||
269 | strlcpy(host->class_dev.class_id, host->host_name, BUS_ID_SIZE); | ||
270 | return class_device_add(&host->class_dev); | 269 | return class_device_add(&host->class_dev); |
271 | } | 270 | } |
272 | 271 | ||
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index a74a810a1302..113cc27865f0 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h | |||
@@ -68,7 +68,6 @@ struct mmc_host { | |||
68 | unsigned int f_min; | 68 | unsigned int f_min; |
69 | unsigned int f_max; | 69 | unsigned int f_max; |
70 | u32 ocr_avail; | 70 | u32 ocr_avail; |
71 | char host_name[8]; | ||
72 | 71 | ||
73 | /* host specific block data */ | 72 | /* host specific block data */ |
74 | unsigned int max_seg_size; /* see blk_queue_max_segment_size */ | 73 | unsigned int max_seg_size; /* see blk_queue_max_segment_size */ |
@@ -98,7 +97,7 @@ extern void mmc_free_host(struct mmc_host *); | |||
98 | 97 | ||
99 | #define mmc_priv(x) ((void *)((x) + 1)) | 98 | #define mmc_priv(x) ((void *)((x) + 1)) |
100 | #define mmc_dev(x) ((x)->dev) | 99 | #define mmc_dev(x) ((x)->dev) |
101 | #define mmc_hostname(x) ((x)->host_name) | 100 | #define mmc_hostname(x) ((x)->class_dev.class_id) |
102 | 101 | ||
103 | extern int mmc_suspend_host(struct mmc_host *, pm_message_t); | 102 | extern int mmc_suspend_host(struct mmc_host *, pm_message_t); |
104 | extern int mmc_resume_host(struct mmc_host *); | 103 | extern int mmc_resume_host(struct mmc_host *); |