diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-06 19:52:53 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-07 12:59:52 -0500 |
commit | 427c4f333474f5447f62387c1fb060e586c1a781 (patch) | |
tree | 04aada64f2a30eea745a9f2d083a56680e5041d4 | |
parent | 796bcae7361c28cf825780f6f1aac9dd3411394e (diff) |
usb: 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>
-rw-r--r-- | drivers/usb/host/ohci-tmio.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/musb_core.c | 4 | ||||
-rw-r--r-- | drivers/usb/musb/musb_gadget.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/musbhsdma.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/host/ohci-tmio.c b/drivers/usb/host/ohci-tmio.c index f9f134af0bd1..8dabe8e31d8c 100644 --- a/drivers/usb/host/ohci-tmio.c +++ b/drivers/usb/host/ohci-tmio.c | |||
@@ -201,7 +201,7 @@ static int __devinit ohci_hcd_tmio_drv_probe(struct platform_device *dev) | |||
201 | if (!cell) | 201 | if (!cell) |
202 | return -EINVAL; | 202 | return -EINVAL; |
203 | 203 | ||
204 | hcd = usb_create_hcd(&ohci_tmio_hc_driver, &dev->dev, dev->dev.bus_id); | 204 | hcd = usb_create_hcd(&ohci_tmio_hc_driver, &dev->dev, dev_name(&dev->dev)); |
205 | if (!hcd) { | 205 | if (!hcd) { |
206 | ret = -ENOMEM; | 206 | ret = -ENOMEM; |
207 | goto err_usb_create_hcd; | 207 | goto err_usb_create_hcd; |
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 5280dba9b1fb..0b742ebe5c8c 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -1781,7 +1781,7 @@ allocate_instance(struct device *dev, | |||
1781 | #ifdef CONFIG_USB_MUSB_HDRC_HCD | 1781 | #ifdef CONFIG_USB_MUSB_HDRC_HCD |
1782 | struct usb_hcd *hcd; | 1782 | struct usb_hcd *hcd; |
1783 | 1783 | ||
1784 | hcd = usb_create_hcd(&musb_hc_driver, dev, dev->bus_id); | 1784 | hcd = usb_create_hcd(&musb_hc_driver, dev, dev_name(dev)); |
1785 | if (!hcd) | 1785 | if (!hcd) |
1786 | return NULL; | 1786 | return NULL; |
1787 | /* usbcore sets dev->driver_data to hcd, and sometimes uses that... */ | 1787 | /* usbcore sets dev->driver_data to hcd, and sometimes uses that... */ |
@@ -1984,7 +1984,7 @@ bad_config: | |||
1984 | INIT_WORK(&musb->irq_work, musb_irq_work); | 1984 | INIT_WORK(&musb->irq_work, musb_irq_work); |
1985 | 1985 | ||
1986 | /* attach to the IRQ */ | 1986 | /* attach to the IRQ */ |
1987 | if (request_irq(nIrq, musb->isr, 0, dev->bus_id, musb)) { | 1987 | if (request_irq(nIrq, musb->isr, 0, dev_name(dev), musb)) { |
1988 | dev_err(dev, "request_irq %d failed!\n", nIrq); | 1988 | dev_err(dev, "request_irq %d failed!\n", nIrq); |
1989 | status = -ENODEV; | 1989 | status = -ENODEV; |
1990 | goto fail2; | 1990 | goto fail2; |
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index d6a802c224fa..6197daeab8f9 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c | |||
@@ -1633,7 +1633,7 @@ int __init musb_gadget_setup(struct musb *musb) | |||
1633 | musb->g.speed = USB_SPEED_UNKNOWN; | 1633 | musb->g.speed = USB_SPEED_UNKNOWN; |
1634 | 1634 | ||
1635 | /* this "gadget" abstracts/virtualizes the controller */ | 1635 | /* this "gadget" abstracts/virtualizes the controller */ |
1636 | strcpy(musb->g.dev.bus_id, "gadget"); | 1636 | dev_set_name(&musb->g.dev, "gadget"); |
1637 | musb->g.dev.parent = musb->controller; | 1637 | musb->g.dev.parent = musb->controller; |
1638 | musb->g.dev.dma_mask = musb->controller->dma_mask; | 1638 | musb->g.dev.dma_mask = musb->controller->dma_mask; |
1639 | musb->g.dev.release = musb_gadget_release; | 1639 | musb->g.dev.release = musb_gadget_release; |
diff --git a/drivers/usb/musb/musbhsdma.c b/drivers/usb/musb/musbhsdma.c index 8c734ef2c1ed..d193b7849087 100644 --- a/drivers/usb/musb/musbhsdma.c +++ b/drivers/usb/musb/musbhsdma.c | |||
@@ -424,7 +424,7 @@ dma_controller_create(struct musb *musb, void __iomem *base) | |||
424 | controller->controller.channel_abort = dma_channel_abort; | 424 | controller->controller.channel_abort = dma_channel_abort; |
425 | 425 | ||
426 | if (request_irq(irq, dma_controller_irq, IRQF_DISABLED, | 426 | if (request_irq(irq, dma_controller_irq, IRQF_DISABLED, |
427 | musb->controller->bus_id, &controller->controller)) { | 427 | dev_name(musb->controller), &controller->controller)) { |
428 | dev_err(dev, "request_irq %d failed!\n", irq); | 428 | dev_err(dev, "request_irq %d failed!\n", irq); |
429 | dma_controller_destroy(&controller->controller); | 429 | dma_controller_destroy(&controller->controller); |
430 | 430 | ||