forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 95099d4622f8cb224d94e314c7a8e0df60b13f87
kernel/drivers/usb/gadget/udc/fsl_qe_udc.c
....@@ -923,9 +923,9 @@
923923 return 0;
924924 }
925925
926
-static void ep_rx_tasklet(unsigned long data)
926
+static void ep_rx_tasklet(struct tasklet_struct *t)
927927 {
928
- struct qe_udc *udc = (struct qe_udc *)data;
928
+ struct qe_udc *udc = from_tasklet(udc, t, rx_tasklet);
929929 struct qe_ep *ep;
930930 struct qe_frame *pframe;
931931 struct qe_bd __iomem *bd;
....@@ -2553,8 +2553,7 @@
25532553 DMA_TO_DEVICE);
25542554 }
25552555
2556
- tasklet_init(&udc->rx_tasklet, ep_rx_tasklet,
2557
- (unsigned long)udc);
2556
+ tasklet_setup(&udc->rx_tasklet, ep_rx_tasklet);
25582557 /* request irq and disable DR */
25592558 udc->usb_irq = irq_of_parse_and_map(np, 0);
25602559 if (!udc->usb_irq) {