diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-01-06 13:44:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 13:44:35 -0500 |
commit | 0bad16aa081002c290d4b424bc019d890cab8796 (patch) | |
tree | b850cfb662492993f2e857c9396a39d2692f61e9 /drivers | |
parent | 64dba9a9a33ec9ba00b0a504562d9f692ae89884 (diff) |
tifm: struct device - replace bus_id with dev_name(), dev_set_name()
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/misc/tifm_7xx1.c | 2 | ||||
-rw-r--r-- | drivers/misc/tifm_core.c | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/drivers/misc/tifm_7xx1.c b/drivers/misc/tifm_7xx1.c index 67503ea71d21..e71eba31decb 100644 --- a/drivers/misc/tifm_7xx1.c +++ b/drivers/misc/tifm_7xx1.c | |||
@@ -164,7 +164,7 @@ static void tifm_7xx1_switch_media(struct work_struct *work) | |||
164 | if (sock) { | 164 | if (sock) { |
165 | printk(KERN_INFO | 165 | printk(KERN_INFO |
166 | "%s : demand removing card from socket %u:%u\n", | 166 | "%s : demand removing card from socket %u:%u\n", |
167 | fm->dev.bus_id, fm->id, cnt); | 167 | dev_name(&fm->dev), fm->id, cnt); |
168 | fm->sockets[cnt] = NULL; | 168 | fm->sockets[cnt] = NULL; |
169 | sock_addr = sock->addr; | 169 | sock_addr = sock->addr; |
170 | spin_unlock_irqrestore(&fm->lock, flags); | 170 | spin_unlock_irqrestore(&fm->lock, flags); |
diff --git a/drivers/misc/tifm_core.c b/drivers/misc/tifm_core.c index 82dc72a1484f..98bcba521da2 100644 --- a/drivers/misc/tifm_core.c +++ b/drivers/misc/tifm_core.c | |||
@@ -203,7 +203,7 @@ int tifm_add_adapter(struct tifm_adapter *fm) | |||
203 | if (rc) | 203 | if (rc) |
204 | return rc; | 204 | return rc; |
205 | 205 | ||
206 | snprintf(fm->dev.bus_id, BUS_ID_SIZE, "tifm%u", fm->id); | 206 | dev_set_name(&fm->dev, "tifm%u", fm->id); |
207 | rc = device_add(&fm->dev); | 207 | rc = device_add(&fm->dev); |
208 | if (rc) { | 208 | if (rc) { |
209 | spin_lock(&tifm_adapter_lock); | 209 | spin_lock(&tifm_adapter_lock); |
@@ -266,9 +266,8 @@ struct tifm_dev *tifm_alloc_device(struct tifm_adapter *fm, unsigned int id, | |||
266 | sock->dev.dma_mask = fm->dev.parent->dma_mask; | 266 | sock->dev.dma_mask = fm->dev.parent->dma_mask; |
267 | sock->dev.release = tifm_free_device; | 267 | sock->dev.release = tifm_free_device; |
268 | 268 | ||
269 | snprintf(sock->dev.bus_id, BUS_ID_SIZE, | 269 | dev_set_name(&sock->dev, "tifm_%s%u:%u", |
270 | "tifm_%s%u:%u", tifm_media_type_name(type, 2), | 270 | tifm_media_type_name(type, 2), fm->id, id); |
271 | fm->id, id); | ||
272 | printk(KERN_INFO DRIVER_NAME | 271 | printk(KERN_INFO DRIVER_NAME |
273 | ": %s card detected in socket %u:%u\n", | 272 | ": %s card detected in socket %u:%u\n", |
274 | tifm_media_type_name(type, 0), fm->id, id); | 273 | tifm_media_type_name(type, 0), fm->id, id); |