summaryrefslogtreecommitdiff
path: root/target/linux/cns3xxx/files/drivers/usb/dwc/otg_attr.c
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2014-03-12 13:37:40 +0000
committerImre Kaloz <kaloz@openwrt.org>2014-03-12 13:37:40 +0000
commit68022cac6423111f5eaea8f1e8b297f1ed282a28 (patch)
tree506dd49aa00313f5598577da7a06a41eac0e7235 /target/linux/cns3xxx/files/drivers/usb/dwc/otg_attr.c
parent47dfbb5bc62c74b9685e6f243f31e768cae1a868 (diff)
downloadmtk-20170518-68022cac6423111f5eaea8f1e8b297f1ed282a28.zip
mtk-20170518-68022cac6423111f5eaea8f1e8b297f1ed282a28.tar.gz
mtk-20170518-68022cac6423111f5eaea8f1e8b297f1ed282a28.tar.bz2
various dwc (OTG) driver fixups
Signed-off-by: Tim Harvey <tharvey@gateworks.com> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 39892
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" );
}