diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-08-19 04:42:21 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-08-19 04:42:21 -0400 |
commit | 1ad434d7cf5f490c71cfbbb2fb91076c01c8704e (patch) | |
tree | 150758fc182cabcd231e8975a44062ee5d44dc71 /drivers/mmc | |
parent | 00b137cfda5276b3d2c87d44236fe4c5ee68b405 (diff) |
[MMC] Use class device name for mmc host name
There's no point in having the host name duplicated between
the mmc_host structure and the encapsulated class device
structure.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/mmc_sysfs.c | 3 |
1 files changed, 1 insertions, 2 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 | ||