From patchwork Fri Oct 14 01:29:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 77640 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp93603qge; Thu, 13 Oct 2016 18:27:54 -0700 (PDT) X-Received: by 10.28.93.134 with SMTP id r128mr3913970wmb.13.1476408474184; Thu, 13 Oct 2016 18:27:54 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id ls2si21553950wjb.7.2016.10.13.18.27.53; Thu, 13 Oct 2016 18:27:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D6F614B71E; Fri, 14 Oct 2016 03:27:52 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vTWuZgLMXv6j; Fri, 14 Oct 2016 03:27:52 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4D0EC4B811; Fri, 14 Oct 2016 03:27:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7421C4B811 for ; Fri, 14 Oct 2016 03:27:44 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w7O9sik7O7bw for ; Fri, 14 Oct 2016 03:27:44 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-08.nifty.com (conuserg-08.nifty.com [210.131.2.75]) by theia.denx.de (Postfix) with ESMTPS id 5A1164B71E for ; Fri, 14 Oct 2016 03:27:39 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id u9E1RBA2017666; Fri, 14 Oct 2016 10:27:12 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com u9E1RBA2017666 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1476408432; bh=oUa2X8CDNoc973G6LgWgDWErPWU6uxxiiuVIBzVu/bI=; h=From:To:Cc:Subject:Date:From; b=PPVxwoZhyYMW6N4VP4sJOBlIN7qvOUDKzvxtJSdBRhELAzJznjO+oFtzdfmOJUBOK 2B7rfpsxnerIDNijwJjTSKxRkgHjy+9xuA1nOr08SRDD01mWa74qaN3hvfY42ElIGL lZWuM5gr517goZ/j5W/Dw90wlJMX7uJYHAkifW7iXQiXYn0LaLiiMw8+jNr3W6HqU0 WrRy/fy7LOmQMY3+OeMUYLZ28mWmKT2EmhZAjuOFAKH6ToGnt24KvqmATG7O7u014l JVz2WSstBTzH0MbUgA/Tc4wySry0X2c7dP07iYupDa2zi6NwvKwUBDldbRSV8rmpRQ /Nr8MvDEViozg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 14 Oct 2016 10:29:37 +0900 Message-Id: <1476408577-10261-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Cc: Marek Vasut Subject: [U-Boot] [PATCH] usb: ehci-vf: use ehci_deregister() for .remove callback X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This driver was recently converted to Driver Model, so missed the subsystem-wide cleanups by commit 405273427366 ("usb: replace ehci_*_remove() with usb_deregister()"). Signed-off-by: Masahiro Yamada --- drivers/usb/host/ehci-vf.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c index f6f9efb..f389bff 100644 --- a/drivers/usb/host/ehci-vf.c +++ b/drivers/usb/host/ehci-vf.c @@ -339,17 +339,6 @@ static int ehci_usb_probe(struct udevice *dev) return ehci_register(dev, hccr, hcor, &vf_ehci_ops, 0, priv->init_type); } -static int ehci_usb_remove(struct udevice *dev) -{ - int ret; - - ret = ehci_deregister(dev); - if (ret) - return ret; - - return 0; -} - static const struct udevice_id vf_usb_ids[] = { { .compatible = "fsl,vf610-usb" }, { } @@ -361,7 +350,7 @@ U_BOOT_DRIVER(usb_ehci) = { .of_match = vf_usb_ids, .bind = vf_usb_bind, .probe = ehci_usb_probe, - .remove = ehci_usb_remove, + .remove = ehci_deregister, .ops = &ehci_usb_ops, .ofdata_to_platdata = vf_usb_ofdata_to_platdata, .platdata_auto_alloc_size = sizeof(struct usb_platdata),