From patchwork Sat Apr 14 13:06:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 10341221 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C963660153 for ; Sat, 14 Apr 2018 13:07:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA26628A83 for ; Sat, 14 Apr 2018 13:07:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEB8928A87; Sat, 14 Apr 2018 13:07:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63AA428A83 for ; Sat, 14 Apr 2018 13:07:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751087AbeDNNG4 (ORCPT ); Sat, 14 Apr 2018 09:06:56 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:36901 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750936AbeDNNGr (ORCPT ); Sat, 14 Apr 2018 09:06:47 -0400 Received: by mail-lf0-f67.google.com with SMTP id m200-v6so16093385lfm.4; Sat, 14 Apr 2018 06:06:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=I0IcuuGJSep9OLKf7LgOR8klzUab8p6Da9b6uhAeEXQ=; b=tSya6G8r7GLatnkCrA+RgCa68rD/8itp1RuUqXbh/eqIZ5Vbwk9ZuAr9rj1NxpKbE1 lqGy/fGed1rnv5ywBcZG3gmS1TWbQGBkNC5+851UWutGG9jtXk0jhplG5DrRgL7j+SU+ v9b7y6TXXIpPpLlp/bEoBaHyT+Jl7OLv8uPJsPmTDYtqQ6ec0tMxQTwt26fz4D03XgNw 7WntHkiBjK4GA1j1IAFcB8E5Xa2xstkYRvy/SDnIYLKwpAgpcRVZ9lSYIBAWX9DgKydm QaEgYl6PqtYq7BOA1U/d0h3zwz9e3h/qGCRhYwZ2YsEHAc4cKmQkPlqhSFaDGg4szZAU bl9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=I0IcuuGJSep9OLKf7LgOR8klzUab8p6Da9b6uhAeEXQ=; b=iGJeesXLkLy9evX7mzE2lGRz4tUY0xhrlMLrpveA8vbujtlZ6rDO/7ECWWM/w4sN7J xPSEyAJUEvOmSrfriKk/fO3E36wI51Y6hfYjyAgHZHA4OBj+lHBXoiTk2wDJoGYxqMDo Yc/ZBmpRvbINr6NWO6PVUpgnTQDp7EzQ33bQTTt5PiFRApn4wR4390k2BOQpPL5doSne QqJT0Ciu4kHp6Y7U4Zzve3LF+qTWJM8ocK04x0w00DtosLrbxxxunFdoAZj0qtVmPcV9 XDQa5LdyCf0y0fNgngQjB6sbZVwwK3j4z20LjP7Xwac6CyC4Wgah52Wq5DwkfxD2DlWQ ZUIQ== X-Gm-Message-State: ALQs6tAZunqUZWj8My88iqzQ3Q9tiYzkoALxu00Azsy+HJrbzgA4c7I3 9t4CcnpGpt4cdtHk0ouwvZkwBs9T X-Google-Smtp-Source: AIpwx4/dt6O8kD+VTxEL4mD6CMaAJqVAZEu7KJGb8ziCTlvSx6CwIGSEHV9hRZ3LusE4jifhg80p2g== X-Received: by 10.46.50.11 with SMTP id y11mr5860663ljy.149.1523711205519; Sat, 14 Apr 2018 06:06:45 -0700 (PDT) Received: from xi.terra (c-8bb2e655.07-184-6d6c6d4.cust.bredbandsbolaget.se. [85.230.178.139]) by smtp.gmail.com with ESMTPSA id u19sm1369505ljj.51.2018.04.14.06.06.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Apr 2018 06:06:43 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1f7Kt5-000641-LN; Sat, 14 Apr 2018 15:06:39 +0200 From: Johan Hovold To: Greg Kroah-Hartman , Felipe Balbi Cc: Alan Stern , Bin Liu , linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, Johan Hovold Subject: [PATCH 3/6] USB: ehci-omap: drop unused legacy phy support Date: Sat, 14 Apr 2018 15:06:15 +0200 Message-Id: <20180414130618.23249-4-johan@kernel.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180414130618.23249-1-johan@kernel.org> References: <20180414130618.23249-1-johan@kernel.org> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Drop support for looking up legacy phys defined by board files, something which hasn't been used by a mainline kernel since commit 9080b8dc761a ("ARM: OMAP2+: Remove legacy usb-host.c platform init code"). Specifically, since that commit usb_get_phy_dev() have always returned -ENODEV and consequently this code has not been used. Signed-off-by: Johan Hovold --- drivers/usb/host/ehci-omap.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index 8d8bafc70c1f..7e4c13346a1e 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -157,10 +157,7 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev) struct usb_phy *phy; /* get the PHY device */ - if (dev->of_node) - phy = devm_usb_get_phy_by_phandle(dev, "phys", i); - else - phy = devm_usb_get_phy_dev(dev, i); + phy = devm_usb_get_phy_by_phandle(dev, "phys", i); if (IS_ERR(phy)) { /* Don't bail out if PHY is not absolutely necessary */ if (pdata->port_mode[i] != OMAP_EHCI_PORT_MODE_PHY)