USB: host: ohci-at91: Remove unused variable regs in at91_stop_hc
Subsystems (3)
PATCH 1/1 USB: host: ohci-at91: Remove unused variable regs in at91_stop_hc
drivers/usb/host/ohci-at91.c:118:28: warning: unused variable 'regs' [-Wunused-variable]
struct ohci_regs __iomem *regs = hcd->regs;
^1 warning generated.
Fixes 9c4567fa0a44 ("USB: host: ohci-at91: completely shutdown the controller in at91_stop_hc()")
Signed-off-by Nathan Chancellor <[email protected]>
--- drivers/usb/host/ohci-at91.c | 1 - 1 file changed, 1 deletion(-)
drivers/usb/host/ohci-at91.c +0 -1
@@ -115,7 +115,6 @@ static void at91_start_hc(struct platform_device *pdev)static void at91_stop_hc (struct platform_device *pdev) {struct usb_hcd *hcd =platform_get_drvdata (pdev); -struct ohci_regs __iomem *regs = hcd->regs;struct ohci_at91_priv *ohci_at91 =hcd_to_ohci_at91_priv (hcd);dev_dbg (&pdev->dev,"stop\n" );
Signature · 1 line
2.23.0
Quoted 8 lines · Nathan Chancellor
drivers/usb/host/ohci-at91.c:118:28: warning: unused variable 'regs' [-Wunused-variable]struct ohci_regs __iomem *regs = hcd->regs; ^1 warning generated.
Fixes 9c4567fa0a44 ("USB: host: ohci-at91: completely shutdown the controller in at91_stop_hc()")Signed-off-by Nathan Chancellor <[email protected]>
Acked-by Nicolas Ferre <[email protected]>
Quoted 17 lines
--- drivers/usb/host/ohci-at91.c | 1 - 1 file changed, 1 deletion(-)drivers/usb/host/ohci-at91.c +0
-1@@ -115,7 +115,6 @@ static void at91_start_hc(struct platform_device *pdev)static void at91_stop_hc (struct platform_device *pdev) {struct usb_hcd *hcd =platform_get_drvdata (pdev); -struct ohci_regs __iomem *regs = hcd->regs;struct ohci_at91_priv *ohci_at91 =hcd_to_ohci_at91_priv (hcd);dev_dbg (&pdev->dev,"stop\n" );
Signature · 1 line
Nicolas Ferre