summaryrefslogtreecommitdiff
path: root/target/linux/cns3xxx/files/drivers/usb/dwc/otg_attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/cns3xxx/files/drivers/usb/dwc/otg_attr.c')
-rw-r--r--target/linux/cns3xxx/files/drivers/usb/dwc/otg_attr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/target/linux/cns3xxx/files/drivers/usb/dwc/otg_attr.c b/target/linux/cns3xxx/files/drivers/usb/dwc/otg_attr.c
index 343acd2..45d0678 100644
--- a/target/linux/cns3xxx/files/drivers/usb/dwc/otg_attr.c
+++ b/target/linux/cns3xxx/files/drivers/usb/dwc/otg_attr.c
@@ -721,9 +721,10 @@ static ssize_t hcddump_show( struct device *_dev,
char *buf)
{
#ifndef DWC_DEVICE_ONLY
- struct platform_device *pdev = container_of(_dev, struct platform_device, dev); \
- dwc_otg_device_t *otg_dev = platform_get_drvdata(pdev); \
- dwc_otg_hcd_dump_state(otg_dev->hcd);
+ struct platform_device *pdev = container_of(_dev, struct platform_device, dev);
+ struct usb_hcd *hcd = platform_get_drvdata(pdev);
+ dwc_otg_hcd_t *otg_dev = hcd_to_dwc_otg_hcd(hcd);
+ dwc_otg_hcd_dump_state(otg_dev);
#endif
return sprintf( buf, "HCD Dump\n" );
}