summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryinbo.zhu <yinbo.zhu@nxp.com>2017-05-17 11:22:03 (GMT)
committerXie Xiaobo <xiaobo.xie@nxp.com>2017-09-25 07:25:29 (GMT)
commit8516020b760c2f74bf9e17e09ab91d24d65ac3b9 (patch)
treeaf8fd16585e012510b5cac6e3ba1045224432494
parent08c92293341bda3fa8b19a3061a56ef5def59c9b (diff)
downloadlinux-8516020b760c2f74bf9e17e09ab91d24d65ac3b9.tar.xz
Add macro ehci_has_fsl_susp_errata for fix arm64 compiled issue.
Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
-rw-r--r--drivers/usb/core/usb.c1
-rw-r--r--drivers/usb/host/ehci.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index bd74c0f..5921514 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -452,7 +452,6 @@ struct usb_device *usb_alloc_dev(struct usb_device *parent,
*/
dev->dev.dma_mask = bus->controller->dma_mask;
dev->dev.dma_pfn_offset = bus->controller->dma_pfn_offset;
- set_dev_node(&dev->dev, dev_to_node(bus->sysdev));
set_dev_node(&dev->dev, dev_to_node(bus->controller));
dev->state = USB_STATE_ATTACHED;
dev->lpm_disable_count = 1;
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index 89e78d0..c4bd983 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -708,8 +708,10 @@ ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc)
* incoming packets get corrupted in HS mode
*/
#define ehci_has_fsl_hs_errata(e) ((e)->has_fsl_hs_errata)
+#define ehci_has_fsl_susp_errata(e) ((e)->has_fsl_susp_errata)
#else
#define ehci_has_fsl_hs_errata(e) (0)
+#define ehci_has_fsl_susp_errata(e) (0)
#endif
/*