Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1236075pxk; Fri, 2 Oct 2020 04:49:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQESu/BM1a+VUGDaDwkOcxsGOJIO/seasGfYjMKlbXT0gW4pXrE6LndTmKkJ27nTU/BovK X-Received: by 2002:a17:906:14db:: with SMTP id y27mr1951920ejc.148.1601639372026; Fri, 02 Oct 2020 04:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601639372; cv=none; d=google.com; s=arc-20160816; b=m8kbAA3iX0c+pjoGZejwNdC6Xn0HrdGL4ek5lWAmWa3NS/uyzmQkV9f+xd1qpq38Ef yCdSRm3Itn7ygY+ofZI0l6LGcIOpAtbP6MXVXiCj/GlxiFxA0o17wJDafeSlNNaFJKUv ifZvQNrRYq198HJ+us8ycyXnZ80lvRstiE/xQgYH8yk+EuTIIwNSS53+ltDu/82QLggL +OsmG1JFruN9+v6ZX5sI/ME3ht3MNwFYgotxbebHBmV6L7wHrIqKiWC4PjQilSuENvGp zkjX/zdyFsMjJB2lJttyRqR25xssDzEHmqedqqajwz610Eh9j3fvOaz1dboZjdzCTDq0 Pz4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=OUoOtUlG0plBjUI1CXGX5Fbe4MPzO16+rYM/rWJsOIs=; b=T5BMvFh16L/WXJAHtnO9kYE3dU+Iso+hzbUj+vRPguvTf1c6xN6QTPdGcX7qlNBIsn Am8VbxiR8jRVRxJHMlGkWU0hKVpepZGwWc8AxT1hRMYCpPnT2aKQAS6BGaPkVv8BbRKA 8t/DF038ryDu+jgmL/CJ6lRDERLOOo48wGPo2i3spG8l5xrdZy8jzHtRX6S7vR8iGjuf aF94FLzCh/Adud7qRqibYK3qjSgsCBiEpB4fHYBdSsutYq1ZHH++oD84yjjTcZP0K7pj CoHKItp95QIW69sQPqjvBjEMJuA+tL4jG6d9XdXwJA/9PAInkg3I3R7VLCSLofSFGlHX J9yA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x90si794818edc.81.2020.10.02.04.49.09; Fri, 02 Oct 2020 04:49:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387491AbgJBLq7 (ORCPT + 99 others); Fri, 2 Oct 2020 07:46:59 -0400 Received: from foss.arm.com ([217.140.110.172]:33472 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725964AbgJBLq7 (ORCPT ); Fri, 2 Oct 2020 07:46:59 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 858631063; Fri, 2 Oct 2020 04:46:58 -0700 (PDT) Received: from e121166-lin.cambridge.arm.com (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 50CA73F70D; Fri, 2 Oct 2020 04:46:57 -0700 (PDT) Date: Fri, 2 Oct 2020 12:46:52 +0100 From: Lorenzo Pieralisi To: Liu Shixin Cc: Rob Herring , Bjorn Helgaas , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] PCI: iproc: use module_bcma_driver to simplify the code Message-ID: <20201002114652.GA23640@e121166-lin.cambridge.arm.com> References: <20200918030829.3946025-1-liushixin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200918030829.3946025-1-liushixin2@huawei.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 18, 2020 at 11:08:29AM +0800, Liu Shixin wrote: > module_bcma_driver() makes the code simpler by eliminating > boilerplate code. > > Signed-off-by: Liu Shixin > --- > drivers/pci/controller/pcie-iproc-bcma.c | 13 +------------ > 1 file changed, 1 insertion(+), 12 deletions(-) Applied to pci/iproc, thanks. Lorenzo > diff --git a/drivers/pci/controller/pcie-iproc-bcma.c b/drivers/pci/controller/pcie-iproc-bcma.c > index aa55b064f64d..56b8ee7bf330 100644 > --- a/drivers/pci/controller/pcie-iproc-bcma.c > +++ b/drivers/pci/controller/pcie-iproc-bcma.c > @@ -94,18 +94,7 @@ static struct bcma_driver iproc_pcie_bcma_driver = { > .probe = iproc_pcie_bcma_probe, > .remove = iproc_pcie_bcma_remove, > }; > - > -static int __init iproc_pcie_bcma_init(void) > -{ > - return bcma_driver_register(&iproc_pcie_bcma_driver); > -} > -module_init(iproc_pcie_bcma_init); > - > -static void __exit iproc_pcie_bcma_exit(void) > -{ > - bcma_driver_unregister(&iproc_pcie_bcma_driver); > -} > -module_exit(iproc_pcie_bcma_exit); > +module_bcma_driver(iproc_pcie_bcma_driver); > > MODULE_AUTHOR("Hauke Mehrtens"); > MODULE_DESCRIPTION("Broadcom iProc PCIe BCMA driver"); > -- > 2.25.1 >