@@ -32,7 +32,6 @@
(EHCI_INSNREG00_ENA_INCR16 | EHCI_INSNREG00_ENA_INCR8 | \
EHCI_INSNREG00_ENA_INCR4 | EHCI_INSNREG00_ENA_INCRX_ALIGN)
-static const char hcd_name[] = "ehci-exynos";
static struct hc_driver __read_mostly exynos_ehci_hc_driver;
#define PHY_NUMBER 3
@@ -53,8 +53,6 @@ struct ehci_platform_priv {
struct delayed_work poll_work;
};
-static const char hcd_name[] = "ehci-platform";
-
static int ehci_platform_reset(struct usb_hcd *hcd)
{
struct platform_device *pdev = to_platform_device(hcd->self.controller);
@@ -41,8 +41,6 @@ struct ohci_platform_priv {
struct reset_control *resets;
};
-static const char hcd_name[] = "ohci-platform";
-
static int ohci_platform_power_on(struct platform_device *dev)
{
struct usb_hcd *hcd = platform_get_drvdata(dev);
In the commit 10174220f55a ("usb: reduce kernel log spam on driver registration") a lot of unneeded kernel log messages were removed, but that caused a few build warnings to show up where the variable `hcd_name` was being set but never used anymore. Resolve this by just removing these variables as they are not needed anymore Reported-by: kernel test robot <lkp@intel.com> Cc: Ard Biesheuvel <ardb@kernel.org> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Cc: Alim Akhtar <alim.akhtar@samsung.com> Cc: Rob Herring <robh@kernel.org> Cc: linux-usb@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Fixes: 10174220f55a ("usb: reduce kernel log spam on driver registration") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- drivers/usb/host/ehci-exynos.c | 1 - drivers/usb/host/ehci-platform.c | 2 -- drivers/usb/host/ohci-platform.c | 2 -- 3 files changed, 5 deletions(-)