From: Sergey Shtylyov Date: Mon, 12 Jul 2021 18:16:07 +0000 (+0300) Subject: usb: host: ohci-spear: simplify calling usb_add_hcd() X-Git-Tag: accepted/tizen/unified/20230118.172025~6522^2~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e725ace06fc4072a5a9e934805fbe42454b32c90;p=platform%2Fkernel%2Flinux-rpi.git usb: host: ohci-spear: simplify calling usb_add_hcd() There is no need to call platform_get_irq() when the driver's probe() method calls usb_add_hcd() -- the platform_get_irq()'s result will have been stored already in the 'irq' local variable... Acked-by: Alan Stern Signed-off-by: Sergey Shtylyov Link: https://lore.kernel.org/r/3e4ad969-f2ae-32f7-53fd-ea369f140703@omp.ru Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ohci-spear.c b/drivers/usb/host/ohci-spear.c index 5cc0544..b4cd9e6 100644 --- a/drivers/usb/host/ohci-spear.c +++ b/drivers/usb/host/ohci-spear.c @@ -84,7 +84,7 @@ static int spear_ohci_hcd_drv_probe(struct platform_device *pdev) clk_prepare_enable(sohci_p->clk); - retval = usb_add_hcd(hcd, platform_get_irq(pdev, 0), 0); + retval = usb_add_hcd(hcd, irq, 0); if (retval == 0) { device_wakeup_enable(hcd->self.controller); return retval;