From patchwork Fri Oct 14 01:30:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 77641 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp93643qge; Thu, 13 Oct 2016 18:28:06 -0700 (PDT) X-Received: by 10.194.148.162 with SMTP id tt2mr313026wjb.147.1476408486679; Thu, 13 Oct 2016 18:28:06 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id ej5si21479031wjd.243.2016.10.13.18.28.05; Thu, 13 Oct 2016 18:28:06 -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 2036A4BF90; Fri, 14 Oct 2016 03:28:05 +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 2bniVukao_9F; Fri, 14 Oct 2016 03:28:04 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7A55D4B98A; Fri, 14 Oct 2016 03:28:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B08FE4B98A for ; Fri, 14 Oct 2016 03:27:59 +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 yY8AbTTml5lH for ; Fri, 14 Oct 2016 03:27:59 +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 0EDDDB3812 for ; Fri, 14 Oct 2016 03:27:55 +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 u9E1RZ3Y017962; Fri, 14 Oct 2016 10:27:35 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com u9E1RZ3Y017962 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1476408455; bh=zw2BsoCBeHsDxz0dJz9nj+rxivz3bB52bU6F4zVOCIo=; h=From:To:Cc:Subject:Date:From; b=1WCppk0pvya+zYIpDokU/BeyCaMvqPT0SFXx26STAezbfQWA3ZeFXwglzx3VYoME6 RAaRc3DiTMrsCTNDobmpe5+mgzWYhxCldjbckeXf9SC2zdAo2wErGwLcKfK+aFTECZ 88+huy7umoDIoh8jLtGtLbcbfRwL1a0GaIFLRpRzkFq+exiK7yADd+1Z62RjN/NIXG SuyypbJImnxzPXBw3zLhEky97uJf4V4fwi4c0JbPNdnaSJ6HSe9qEvaUHOhXuI6K73 Qx+nPBSyALyBRk+7wKz45gak2kVZDCdVeFZDT4ejSSwlpHPTfwSab4QT18sAmfQWxk APHKO0oYsp8/w== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 14 Oct 2016 10:30:01 +0900 Message-Id: <1476408601-10328-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Cc: Marek Vasut , Stefan Roese Subject: [U-Boot] [PATCH] usb: xhci-mvebu: use xhci_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" No need to use a wrapper that is equivalent to xhci_deregister(). Signed-off-by: Masahiro Yamada --- drivers/usb/host/xhci-mvebu.c | 7 +------ 1 file changed, 1 insertion(+), 6 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/xhci-mvebu.c b/drivers/usb/host/xhci-mvebu.c index 23c241a..46eb937 100644 --- a/drivers/usb/host/xhci-mvebu.c +++ b/drivers/usb/host/xhci-mvebu.c @@ -56,11 +56,6 @@ static int xhci_usb_probe(struct udevice *dev) return xhci_register(dev, ctx->hcd, hcor); } -static int xhci_usb_remove(struct udevice *dev) -{ - return xhci_deregister(dev); -} - static int xhci_usb_ofdata_to_platdata(struct udevice *dev) { struct mvebu_xhci_platdata *plat = dev_get_platdata(dev); @@ -89,7 +84,7 @@ U_BOOT_DRIVER(usb_xhci) = { .of_match = xhci_usb_ids, .ofdata_to_platdata = xhci_usb_ofdata_to_platdata, .probe = xhci_usb_probe, - .remove = xhci_usb_remove, + .remove = xhci_deregister, .ops = &xhci_usb_ops, .platdata_auto_alloc_size = sizeof(struct mvebu_xhci_platdata), .priv_auto_alloc_size = sizeof(struct mvebu_xhci),