From patchwork Wed Apr 18 09:26:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 10347687 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 7EF296053F for ; Wed, 18 Apr 2018 09:29:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A33D28434 for ; Wed, 18 Apr 2018 09:29:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F00528590; Wed, 18 Apr 2018 09:29:31 +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 2576E28434 for ; Wed, 18 Apr 2018 09:29:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753859AbeDRJ3Y (ORCPT ); Wed, 18 Apr 2018 05:29:24 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34441 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752810AbeDRJ1a (ORCPT ); Wed, 18 Apr 2018 05:27:30 -0400 Received: by mail-lf0-f68.google.com with SMTP id r7-v6so1622857lfr.1; Wed, 18 Apr 2018 02:27:29 -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=JZClrnt0tGpgCKo/MM0X4TWv85CIidfn8R48WSyCMIGAaGVzexisJGB2UV7iUt39BP GKDZ3YSrpPS6FDEdgcBSIm4j805wfg5962ykZrbqhDY3+Eh8eSv7J9d/yYX9XBwerqc8 Cq68uSSpKCEBSaZoRafQkMm0fb8ucd58DBzXIuScQojYt5zrlQjCfvTExcSAX97KRDEi rt5N8oDdmd2kvJxF6d7Z/O5FCc+QWvjCL3LIw5+63nqK77TUDESDg4HMIGUEoeSXtUQ2 zwmclEBjq0Wl3AWDtb5xsOWAflw7TI+QQiWgTWFl/CE5jkC3l4aNyQXQNrEAoahYIPcg UnrQ== 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=XUDGL8BTxkQkb/ZhzdqY2LfcEfOYSz2gEl82BcNr5sxK1CXm5vdC1+3GP9tf3rlfri vRwwn1UmBLsfd3DH61ojHHL7f2LRtznvW8gaUn6NLYenqulaEcnYi7qPRgUQd3FhEymo 7/q/qqk9YaZcGkfmApp6FdDNAo00ZN1g11G1ySzZ38pwfnyrHy9OIYhq5iO5hEMKun5h piDIhDcehbpcKRtgwTeYNt39ROIW6TuOFgrvtt2tffqpkoMhkBbOheCmfrW1XuhWMhJ7 o+w/P69vd2lAwlnDyNmAIuq6bFkcSZxNG6IjKJEoFakGouNE4gc22X9ErTNuaXmkCYxT ducw== X-Gm-Message-State: ALQs6tA8cVex6I3PZfM5HRybyxi9rDQWEU5PnA0j6voG21Cs10m6/bBT bwNGbwk2vqYTSPJKxd2xyQg= X-Google-Smtp-Source: AIpwx4+xeLR+cR/aWO3ZFPkZ9owjIW35HJfZQ9inVCwDI+cGj6qEmqHMxt5TDkmBxsm+5LJXd91gYw== X-Received: by 10.46.149.205 with SMTP id y13mr914428ljh.109.1524043649141; Wed, 18 Apr 2018 02:27:29 -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 c63-v6sm179281lfg.17.2018.04.18.02.27.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Apr 2018 02:27:27 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1f8jN7-0003EW-Aq; Wed, 18 Apr 2018 11:27:25 +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, Yoshihiro Shimoda , Johan Hovold Subject: [PATCH v2 3/6] USB: ehci-omap: drop unused legacy phy support Date: Wed, 18 Apr 2018 11:26:21 +0200 Message-Id: <20180418092624.12361-4-johan@kernel.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180418092624.12361-1-johan@kernel.org> References: <20180418092624.12361-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)