Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp870646pxk; Thu, 17 Sep 2020 19:49:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytkdR8GpdoOmevUrp+fY6NXT5w8fZA5lI/1p1TArCnWse3BdoyoikIRNETiImdDAYI8SYx X-Received: by 2002:a17:906:14d3:: with SMTP id y19mr32949312ejc.453.1600397379965; Thu, 17 Sep 2020 19:49:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600397379; cv=none; d=google.com; s=arc-20160816; b=vnuXupz5viwm9ciskv5+mu9JK+VPg/WIZa0quUN6va0X0cn3jDjCSbCQkJQrvaxdVD M06qEEZvgPnPtL+FNC4wrDQ+7RVNm3MB+xqkhU+1hQNlkT+ezEYr7SXQnqqDNwd+GWe6 gF4DKXy6+tENv63cliwuG8E34kdnBHjP5lZBPLOdWauk1fvgm2TW/yODchYUnrrgxXLv 9He3ciu55JJcAiKwcCo8Txee0BP0XXwutDoHRBzjVvGMPQ6BOdM4yfPP7Oz4SEkP5Qhz 4UINE9jeTEgQp5Gxr2pIYFmnX4G1iW/DbZP+U2Ar7UqjgyOGKQpez+iHivFi467mkqQU be0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=SFAY6WQqn46ZG/FkWfn+C+X6/DCy8wbgNBVD/KUsSmg=; b=njCIkgGVruNG8mx/7R41lpfuMR9lJBh6twz0NRqd2h4JPwtCyCS7gUQ5FR8vX1kX+c ogx/40eMMNlCB4r9FRRmr5OOON5EvSHrBCSvLBvZqk51nx9QLBqm3ZhzaeRtht3GJwNl wVeg9KhVEB87bycStBfQtzEx2NqheEGou3uJ+75vcy4zkFTugLORhUh7JADdbR9aNr2H H+AlkioE+dC7udZPe5F5JQOxOYdc/8gIPRm0YxJEA2qytYzS5FWK2sf5J0uDG2m0Xt/I orTjUWZ5m8obabLiUQNoAfIAfz4TYfLsZwTLEWPDS/RkG2Zw8R9B0EEl6ux52IMyj7OY FHXQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si1468455ejr.202.2020.09.17.19.49.17; Thu, 17 Sep 2020 19:49:39 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728447AbgIRCqT (ORCPT + 99 others); Thu, 17 Sep 2020 22:46:19 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:40116 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728523AbgIRCqK (ORCPT ); Thu, 17 Sep 2020 22:46:10 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 93F1AEE62C376AEAFF42; Fri, 18 Sep 2020 10:46:08 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Fri, 18 Sep 2020 10:45:57 +0800 From: Liu Shixin To: Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Ray Jui , Scott Branden , CC: , , , Liu Shixin Subject: [PATCH -next] PCI: iproc: use module_bcma_driver to simplify the code Date: Fri, 18 Sep 2020 11:08:29 +0800 Message-ID: <20200918030829.3946025-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) 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