Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3295038imc; Wed, 13 Mar 2019 14:03:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqywFYmMMYiHgz7LPvGZ0O6l8Ch6WIVG3kkSq3zn/jl2dwbBLjU3BVyGO/ngDtyX+1RQkewG X-Received: by 2002:a65:62c7:: with SMTP id m7mr13421728pgv.50.1552511014788; Wed, 13 Mar 2019 14:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552511014; cv=none; d=google.com; s=arc-20160816; b=kJ8uYTzGHjYpWBM4wzHpI6WS88jofeev5kB8C5Ofn0/VnpQ2OrQDCNssw/kCUA5QTJ tK9R006Gi4kJnnBd4WFn3NsiDiwcHTo6o3H9WSecTvJQXiCxMqK2pHtwTNFba4Z0Iy6Q Dc9IrQRIVA/Gss7enSm4vJHHOZN4MDFaG13XR41A7z+cvq+HKwhAJL84/p0rRlX/G85A oycQjQPrZusnOWRC/eB93uWUd5pKPqTBR5lzvSLv5k53ni7C6PiIP2GkEapjhDH3ieev Dt8Q2Gs8GDHtb1H+nm8qthk4Gnv4n4ZehZqn9K/2Gr2D94Vy4xHlMNnuNmaH4+cObSYt OUHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=va30IJmsQUhjoF/FfUd796X/NdaOMoRWUebCZGtA4+M=; b=DZ3WydyoVX5Hi7C9pcoHzLjKxTPVUwyciyIbUoqBZu+v+WiFiUxrTBzWyyCwfWNlxT V1R+8enN57uFobSyOZJ6BQGuOmzT5Q3/CPcise4Ejg6R1dREJxSUq52iE29plcyRp4hN BRbFlix7sEWVrt8gxQnsJKAwSNwnBMeR/aJ3bP/XwG5F07rkNByu/Lu/wDtQUsKtzt48 SFlNMHOPiwIrpfuyeuYTtBXgT6zQPpG/paFoMQVP5DNXRJltaqzPf+uzBESLPCdcWgZA tfRI7sI/BsUULvu06cjPcAIovP9eHNxh/Jgxh1TCza4UgUhw0IEQ/7vTpHpmMHeYiiMo v1NA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si11558639pls.208.2019.03.13.14.03.18; Wed, 13 Mar 2019 14:03:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727474AbfCMVCQ (ORCPT + 99 others); Wed, 13 Mar 2019 17:02:16 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:60998 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727411AbfCMVCL (ORCPT ); Wed, 13 Mar 2019 17:02:11 -0400 X-UUID: 2ab71b10a60948c39ff39828b95cc6d4-20190314 X-UUID: 2ab71b10a60948c39ff39828b95cc6d4-20190314 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 659138195; Thu, 14 Mar 2019 05:02:04 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 14 Mar 2019 05:02:03 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 14 Mar 2019 05:02:03 +0800 From: To: , , CC: , , , , Sean Wang Subject: [PATCH v1 3/3] Bluetooth: btsdio: Use module_sdio_driver helper Date: Thu, 14 Mar 2019 05:02:00 +0800 Message-ID: <38ca0408d4c189cb8a01820749c10077450c4465.1552510141.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang Macro module_sdio_driver is used for drivers whose init and exit paths only register and unregister to SDIO API. So remove boilerplate code to make code simpler by using module_sdio_driver. Cc: Marcel Holtmann Cc: Ulf Hansson Signed-off-by: Sean Wang --- drivers/bluetooth/btsdio.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c index 282d1af1d3ba..4cfa9abe03c8 100644 --- a/drivers/bluetooth/btsdio.c +++ b/drivers/bluetooth/btsdio.c @@ -376,20 +376,7 @@ static struct sdio_driver btsdio_driver = { .id_table = btsdio_table, }; -static int __init btsdio_init(void) -{ - BT_INFO("Generic Bluetooth SDIO driver ver %s", VERSION); - - return sdio_register_driver(&btsdio_driver); -} - -static void __exit btsdio_exit(void) -{ - sdio_unregister_driver(&btsdio_driver); -} - -module_init(btsdio_init); -module_exit(btsdio_exit); +module_sdio_driver(btsdio_driver); MODULE_AUTHOR("Marcel Holtmann "); MODULE_DESCRIPTION("Generic Bluetooth SDIO driver ver " VERSION); -- 2.18.0