diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-01-06 10:44:38 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 10:44:38 -0800 |
commit | c85e37c51e7feecbe758e16ecaaa55cea1682e47 (patch) | |
tree | f1f126d91a5fc8194c7aab11d6ddab3a5895cdf7 /drivers/pnp/card.c | |
parent | ba88b0029fcdc39d23acd4d0e64b38145ffa4d5f (diff) | |
download | linux-c85e37c51e7feecbe758e16ecaaa55cea1682e47.tar.gz linux-c85e37c51e7feecbe758e16ecaaa55cea1682e47.tar.bz2 linux-c85e37c51e7feecbe758e16ecaaa55cea1682e47.zip |
pnp: 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/pnp/card.c')
-rw-r--r-- | drivers/pnp/card.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/pnp/card.c b/drivers/pnp/card.c index e75b060daa95..efea128f02da 100644 --- a/drivers/pnp/card.c +++ b/drivers/pnp/card.c @@ -165,8 +165,7 @@ struct pnp_card *pnp_alloc_card(struct pnp_protocol *protocol, int id, char *pnp card->number = id; card->dev.parent = &card->protocol->dev; - sprintf(card->dev.bus_id, "%02x:%02x", card->protocol->number, - card->number); + dev_set_name(&card->dev, "%02x:%02x", card->protocol->number, card->number); card->dev.coherent_dma_mask = DMA_24BIT_MASK; card->dev.dma_mask = &card->dev.coherent_dma_mask; @@ -295,8 +294,8 @@ int pnp_add_card_device(struct pnp_card *card, struct pnp_dev *dev) { dev->dev.parent = &card->dev; dev->card_link = NULL; - snprintf(dev->dev.bus_id, BUS_ID_SIZE, "%02x:%02x.%02x", - dev->protocol->number, card->number, dev->number); + dev_set_name(&dev->dev, "%02x:%02x.%02x", + dev->protocol->number, card->number, dev->number); spin_lock(&pnp_lock); dev->card = card; list_add_tail(&dev->card_list, &card->devices); |