hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/drivers/usb/host/xhci-ring.c
....@@ -689,7 +689,7 @@
689689 static void xhci_unmap_td_bounce_buffer(struct xhci_hcd *xhci,
690690 struct xhci_ring *ring, struct xhci_td *td)
691691 {
692
- struct device *dev = xhci_to_hcd(xhci)->self.controller;
692
+ struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
693693 struct xhci_segment *seg = td->bounce_seg;
694694 struct urb *urb = td->urb;
695695 size_t len;
....@@ -3194,7 +3194,7 @@
31943194 static int xhci_align_td(struct xhci_hcd *xhci, struct urb *urb, u32 enqd_len,
31953195 u32 *trb_buff_len, struct xhci_segment *seg)
31963196 {
3197
- struct device *dev = xhci_to_hcd(xhci)->self.controller;
3197
+ struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
31983198 unsigned int unalign;
31993199 unsigned int max_pkt;
32003200 u32 new_buff_len;