diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2019-10-11 11:59:50 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-15 20:01:59 +0200 |
commit | be731286685af4de728851991b98cb8f579f58f6 (patch) | |
tree | e0687d9c3b835872d66b001637f1326e448c5853 /drivers/usb/host | |
parent | c8dd192be821039d7023e0a5869d2cdf3acdef7e (diff) | |
download | linux-be731286685af4de728851991b98cb8f579f58f6.tar.gz linux-be731286685af4de728851991b98cb8f579f58f6.tar.bz2 linux-be731286685af4de728851991b98cb8f579f58f6.zip |
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 <natechancellor@gmail.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20191011185950.1470-1-natechancellor@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/ohci-at91.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index 513e48397743..b635c6a1b1a9 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c @@ -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"); |