From patchwork Thu Apr 28 10:22:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12830385 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1353CC433FE for ; Thu, 28 Apr 2022 10:23:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231819AbiD1K0k (ORCPT ); Thu, 28 Apr 2022 06:26:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234885AbiD1K0i (ORCPT ); Thu, 28 Apr 2022 06:26:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2DA1220C4; Thu, 28 Apr 2022 03:23:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EED98B82ADD; Thu, 28 Apr 2022 10:23:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94B16C385A9; Thu, 28 Apr 2022 10:23:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651141399; bh=eGq+Qy5coA1eiupDJohON71z3nxTpsGZWZmLWIPy7Ls=; h=From:To:Cc:Subject:Date:From; b=t5okDDTkd4qUrowvavmE94jQ05DGUDdcjuHpgLYTfkNzVvG8U7t/ii6RZgsCK4Ekm 9nfC2LVtbzjaWcNGF/sNtHEd7dk5peocOPsYoyUrDoSK0HOIRgcvWUfytCyeiW5OC3 Li5tofqAOYEAe88wzZ5beQDsLc659hQojAHNJ/aOtPqkuE39imWWfXi4AFLfykl/Et 1JTq3Pvquf1+n83xduuvSAYHqnox3vTs4VthV8okERrtQai8ykzip+9Ua8BxEjL95d OsQ6E0kOJNnPQJlBRDJIHsS+Gm6Bb9oViXgnL9Oser3LkpTsQm35f5fDn219YCjlsL Fl98pxTzeHXeQ== From: Arnd Bergmann To: Alan Stern , Greg Kroah-Hartman Cc: Arnd Bergmann , kernel test robot , Roger Quadros , Felipe Balbi , linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: ehci-omap: drop unused ehci_read() function Date: Thu, 28 Apr 2022 12:22:58 +0200 Message-Id: <20220428102314.950323-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Arnd Bergmann After moving the omap1 platform into generalized multiplatform support on ARM, the kernel test robot points out a W=1 warning that now shows up in more configurations: drivers/usb/host/ehci-omap.c:64:19: warning: unused function 'ehci_read' The function was last used 9 years ago and can just be removed. Fixes: 87425ad36330 ("USB: ehci-omap: Remove PHY reset handling code") Reported-by: kernel test robot Signed-off-by: Arnd Bergmann Acked-by: Alan Stern --- drivers/usb/host/ehci-omap.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index 7f4a03e8647a..8c45bc17a580 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -61,11 +61,6 @@ static inline void ehci_write(void __iomem *base, u32 reg, u32 val) __raw_writel(val, base + reg); } -static inline u32 ehci_read(void __iomem *base, u32 reg) -{ - return __raw_readl(base + reg); -} - /* configure so an HC device and id are always provided */ /* always called with process context; sleeping is OK */