Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1238758pxk; Fri, 2 Oct 2020 04:54:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2CknKeo2JXw3UT1oyGOrSG55tA60O8Kafj7LamQH5NR620bnxa7Iy9FJpJY2ZdG9FCDcu X-Received: by 2002:a50:9e6a:: with SMTP id z97mr1989370ede.32.1601639668964; Fri, 02 Oct 2020 04:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601639668; cv=none; d=google.com; s=arc-20160816; b=f/VyIRhhhmrDQtRE9tGcvQqf+SFAiPkgoNDGCxFexIyD1p+YwToALF40xVpYC7mzvn 4Rczx/jMq/GKIhBKyI+BsRdKNtcvdlj/mK66DmF+OMudazw3AcKSak0Hg2uQ2fgwGv8T PI5SYSlPSmSX78X87X7a9+XS2SfBZP8JEt9RUfBxLdcxRe9A3XCtnV9N124Ne5E4xLZC JdMIo14jO/0H0OhovIDqaxIbOecV9qOhCYvDNd/J9GWwu2rfdHI9yZrd8lSYuyLbMzRp U3JliRZHyNA28mdBqlWhj1xEvAZG/292BKbOjw7teThhih5Luh8geEQ5ABqo3QZMIcHa 9Epg== 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=iL1v1sARzcvE26MGtO2CzeLxcVnevnFBhgNWDJse6H8=; b=niT1qRpRV0yEWOG5xk6u5ME0VnPQIYACQ45Glvahp2g+la0lNwciU80WLkmSeL4hlk VO/exKpJoOa/oAYdhrhqt0idi75mfDSfgMxxdLOxjPPHoulbN/RdwgLDWb64w1xJ6yzH JQHRtPvxjmPdIdRgxtKG2GTNDucjdXEYTnf1UqM0Oti2E4ZgvVg5wSO9YfyWkBAxZu/9 GaO70KBae3MJz7oTBj91w5AtEpogo+S2F5UvGyh7ktKbrpzGyv+B+eGXHKkwltYR2L1C GFuyaL/8VY7G6CzY0oeke0arddkQU5u2H/9P71bFZeY8Yjo+D+a90N8eBvld9XdOSn0b HiSA== 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 o11si889822ejr.667.2020.10.02.04.54.05; Fri, 02 Oct 2020 04:54:28 -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 S2387491AbgJBLu4 (ORCPT + 99 others); Fri, 2 Oct 2020 07:50:56 -0400 Received: from foss.arm.com ([217.140.110.172]:33558 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725964AbgJBLuz (ORCPT ); Fri, 2 Oct 2020 07:50:55 -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 E78CB1063; Fri, 2 Oct 2020 04:50:54 -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 B0C893F70D; Fri, 2 Oct 2020 04:50:53 -0700 (PDT) Date: Fri, 2 Oct 2020 12:50:51 +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: <20201002115051.GB23640@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/mobiveil, 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 >