diff options
Diffstat (limited to 'drivers/usb/host/ehci-dbg.c')
| -rw-r--r-- | drivers/usb/host/ehci-dbg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index 9b347d765383..2ff11d53567b 100644 --- a/drivers/usb/host/ehci-dbg.c +++ b/drivers/usb/host/ehci-dbg.c | |||
| @@ -450,7 +450,7 @@ show_async (struct class_device *class_dev, char *buf) | |||
| 450 | 450 | ||
| 451 | *buf = 0; | 451 | *buf = 0; |
| 452 | 452 | ||
| 453 | bus = to_usb_bus(class_dev); | 453 | bus = class_get_devdata(class_dev); |
| 454 | hcd = bus->hcpriv; | 454 | hcd = bus->hcpriv; |
| 455 | ehci = hcd_to_ehci (hcd); | 455 | ehci = hcd_to_ehci (hcd); |
| 456 | next = buf; | 456 | next = buf; |
| @@ -496,7 +496,7 @@ show_periodic (struct class_device *class_dev, char *buf) | |||
| 496 | return 0; | 496 | return 0; |
| 497 | seen_count = 0; | 497 | seen_count = 0; |
| 498 | 498 | ||
| 499 | bus = to_usb_bus(class_dev); | 499 | bus = class_get_devdata(class_dev); |
| 500 | hcd = bus->hcpriv; | 500 | hcd = bus->hcpriv; |
| 501 | ehci = hcd_to_ehci (hcd); | 501 | ehci = hcd_to_ehci (hcd); |
| 502 | next = buf; | 502 | next = buf; |
| @@ -633,7 +633,7 @@ show_registers (struct class_device *class_dev, char *buf) | |||
| 633 | static char fmt [] = "%*s\n"; | 633 | static char fmt [] = "%*s\n"; |
| 634 | static char label [] = ""; | 634 | static char label [] = ""; |
| 635 | 635 | ||
| 636 | bus = to_usb_bus(class_dev); | 636 | bus = class_get_devdata(class_dev); |
| 637 | hcd = bus->hcpriv; | 637 | hcd = bus->hcpriv; |
| 638 | ehci = hcd_to_ehci (hcd); | 638 | ehci = hcd_to_ehci (hcd); |
| 639 | next = buf; | 639 | next = buf; |
| @@ -735,7 +735,7 @@ static CLASS_DEVICE_ATTR (registers, S_IRUGO, show_registers, NULL); | |||
| 735 | 735 | ||
| 736 | static inline void create_debug_files (struct ehci_hcd *ehci) | 736 | static inline void create_debug_files (struct ehci_hcd *ehci) |
| 737 | { | 737 | { |
| 738 | struct class_device *cldev = &ehci_to_hcd(ehci)->self.class_dev; | 738 | struct class_device *cldev = ehci_to_hcd(ehci)->self.class_dev; |
| 739 | 739 | ||
| 740 | class_device_create_file(cldev, &class_device_attr_async); | 740 | class_device_create_file(cldev, &class_device_attr_async); |
| 741 | class_device_create_file(cldev, &class_device_attr_periodic); | 741 | class_device_create_file(cldev, &class_device_attr_periodic); |
| @@ -744,7 +744,7 @@ static inline void create_debug_files (struct ehci_hcd *ehci) | |||
| 744 | 744 | ||
| 745 | static inline void remove_debug_files (struct ehci_hcd *ehci) | 745 | static inline void remove_debug_files (struct ehci_hcd *ehci) |
| 746 | { | 746 | { |
| 747 | struct class_device *cldev = &ehci_to_hcd(ehci)->self.class_dev; | 747 | struct class_device *cldev = ehci_to_hcd(ehci)->self.class_dev; |
| 748 | 748 | ||
| 749 | class_device_remove_file(cldev, &class_device_attr_async); | 749 | class_device_remove_file(cldev, &class_device_attr_async); |
| 750 | class_device_remove_file(cldev, &class_device_attr_periodic); | 750 | class_device_remove_file(cldev, &class_device_attr_periodic); |
