Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp870029pxk; Thu, 17 Sep 2020 19:48:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzrDrUGAQh4sju+gJIIypamrvVkPvg/SVz+NGDoBx0uj5RaCTuc6L4tUu43lBOfCAQyUIj X-Received: by 2002:a17:906:fb8f:: with SMTP id lr15mr33177987ejb.25.1600397294895; Thu, 17 Sep 2020 19:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600397294; cv=none; d=google.com; s=arc-20160816; b=WPhYXVR9JVPzd92Dd9NvLgDSFwiwcpmwIv7WzrAlkQx5zQ/hetP+ZhvHr7SYsvuvFT yVTXdIrQn+vVEIFXnWhXB70bkO49OEKcG3Ome52diRcXT8GAkP8ikV+7uG40cNf7GcEG 7cuUWrWyUFBbfNnyvGxJ9CuBb+wNMh8jgITBrfg62D+Ck4QirfOkp6e99Z4yqBlkeEYO Gxf/MI6Klizm5uYPQAtIsIqFpQznV+scFpNQvbDwXl7F9QWUEXxYS7XPsxaw15M0bhgE kbm7VYFGwmh0elAS2Pz7+z9pHJZWfxBkt4xeR50MhK8Y8Ago67NCE1Kob2BzgcNPumP8 Qo/w== 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=ykoHUgsnbZJOSonOA6QErKKBGdwyVFdGPjxbl497ZQ4=; b=c0xKG2DRXa3YDE3XM9SYjsj8RSUhwUraC0tnJLzOx+ygqQbr/3ra7BC83vxugBSc8N uKaUOrEYV380ZNcWwoRzsnEKSUka7W7ADklKkzMXWCFSwyXY8zwQTL2y4Uwbql7aiPc2 Gyh0Voc0Mv1ZBByHJYzFwK32xx3KU6q3uSFZkVDgJmyM/Mr7KqZcWHZgiNcimFCGleaI PZLrXuccnMMdzFxW8lBo6UVfxPvPkPd+nPXd/VFIjuNMmzF9GQ8FZ0t+dnlcRiDAXXx8 MZ/spe5aVyPv8gYdXRBz8k3tT4Za2vMBv6AxRywO/FhvnM109kxu8YiWdEdcxqqfJxvd 9sLw== 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 a1si1165288edy.292.2020.09.17.19.47.52; Thu, 17 Sep 2020 19:48:14 -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 S1728982AbgIRCqU (ORCPT + 99 others); Thu, 17 Sep 2020 22:46:20 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13284 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728070AbgIRCqI (ORCPT ); Thu, 17 Sep 2020 22:46:08 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 2C04DC9A7DFDD0AEF78B; Fri, 18 Sep 2020 10:46:06 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Fri, 18 Sep 2020 10:45:59 +0800 From: Liu Shixin To: Greg Kroah-Hartman CC: , , Liu Shixin Subject: [PATCH -next] USB: bcma: use module_bcma_driver to simplify the code Date: Fri, 18 Sep 2020 11:08:30 +0800 Message-ID: <20200918030830.3946254-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/usb/host/bcma-hcd.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/usb/host/bcma-hcd.c b/drivers/usb/host/bcma-hcd.c index b1b777f33521..337b425dd4b0 100644 --- a/drivers/usb/host/bcma-hcd.c +++ b/drivers/usb/host/bcma-hcd.c @@ -498,15 +498,4 @@ static struct bcma_driver bcma_hcd_driver = { .suspend = bcma_hcd_suspend, .resume = bcma_hcd_resume, }; - -static int __init bcma_hcd_init(void) -{ - return bcma_driver_register(&bcma_hcd_driver); -} -module_init(bcma_hcd_init); - -static void __exit bcma_hcd_exit(void) -{ - bcma_driver_unregister(&bcma_hcd_driver); -} -module_exit(bcma_hcd_exit); +module_bcma_driver(bcma_hcd_driver); -- 2.25.1