X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=target%2Flinux%2Fcns3xxx%2Ffiles%2Fdrivers%2Fusb%2Fdwc%2Fotg_attr.c;h=45d06788a2368f8afd85a3a79941bff5b0bbc4a2;hp=343acd2517440cec4c859660a6e084a61e77f205;hb=0dee1595dfc6b5e15acd9899e98de783327e9098;hpb=5c944b4132b257f71f54a4a6e6ed37e651be0adb 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 343acd2517..45d06788a2 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" ); }