* [PATCH] USB: host: ohci-at91: Remove unused variable regs in at91_stop_hc
@ 2019-10-11 18:59 Nathan Chancellor
2019-10-14 8:07 ` Nicolas.Ferre
0 siblings, 1 reply; 2+ messages in thread
From: Nathan Chancellor @ 2019-10-11 18:59 UTC (permalink / raw)
To: Alan Stern, Greg Kroah-Hartman
Cc: Nicolas Ferre, linux-usb, linux-arm-kernel, linux-kernel,
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 <natechancellor@gmail.com>
---
drivers/usb/host/ohci-at91.c | 1 -
1 file changed, 1 deletion(-)
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");
--
2.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] USB: host: ohci-at91: Remove unused variable regs in at91_stop_hc
2019-10-11 18:59 [PATCH] USB: host: ohci-at91: Remove unused variable regs in at91_stop_hc Nathan Chancellor
@ 2019-10-14 8:07 ` Nicolas.Ferre
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas.Ferre @ 2019-10-14 8:07 UTC (permalink / raw)
To: natechancellor, stern, gregkh; +Cc: linux-usb, linux-arm-kernel, linux-kernel
On 11/10/2019 at 20:59, Nathan Chancellor wrote:
> 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>
> ---
> drivers/usb/host/ohci-at91.c | 1 -
> 1 file changed, 1 deletion(-)
>
> 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");
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-14 8:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-11 18:59 [PATCH] USB: host: ohci-at91: Remove unused variable regs in at91_stop_hc Nathan Chancellor
2019-10-14 8:07 ` Nicolas.Ferre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).