Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3295542imc; Wed, 13 Mar 2019 14:04:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGkk4GXEXDG1ovQ7020I0Ec5tpLe8KHa7q4dFfkpA7jdaLGPL07/mcfDSVvDCYq8C04kM/ X-Received: by 2002:a17:902:8602:: with SMTP id f2mr48183448plo.263.1552511062925; Wed, 13 Mar 2019 14:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552511062; cv=none; d=google.com; s=arc-20160816; b=fCnfYeWwQkR4qd38bF5kbNIJ5bm4QvjGZVpdHUteAxK2qccvIvjDiFFKQRpjMUcP9m /gFN5u9jcrXETzW/kvQrFDrjEyCeCloPJpdB6n5d+OwMHc36V/N2+nzKZhH1Vz3/4xrI tHxLgwx145qFm5P46Cf8cUMYtq2zXf55MZXeVtgufk0LYVdDSJx0RKcxQnhS2CUYtpAV M/SOdhQ2BKy8+RazHaxC9QowR+dMJvs3AFyXEN3OHobQGfegL88yi26eZA2mjXzmalr3 o4+raMtxtaF6FSTH+aYrhXXoEqIGK4jZQim+OR0c2+YQqtSIlrOmYe4nqI2nwhABT3I2 409g== 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=wcN4zmqo+3BvwKiYicxZgJjte/3UWjGdyLZ/EYbUCOI=; b=NZZnOD27rTwTXAqvlx3siXBTtv9a1sGKZV+1IOPsCTf0bZF1qXrZRjlRh67+9Gql7M mduBhqBOw0OakhxUNYTyqJDJMrGH+vWdMzATyrbRZGTXflVr/abz6PiVFxp9UWW8rFxD /MoMPzbL8FQRvnhoMvAx4Gf309nXf5eYIlx5kSPynNE9SMdXSZDsXNuqtBF6m9umdIiF ykrq0JAJoV8dOixK3cNwSAMhejI+hZfG/zrTcl63jPhNmXXSrS8/oRoJ1FLbj9jrP5Hh cfLaPZt1hkw4rKADiVj2yBXXiTZ9iEInRKbYvsgoWNhq9na2YKvHw2rSNNi2/fnTFBD8 xfpg== 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 d1si10202886pgo.592.2019.03.13.14.04.06; Wed, 13 Mar 2019 14:04:22 -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 S1727496AbfCMVCR (ORCPT + 99 others); Wed, 13 Mar 2019 17:02:17 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:22703 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727053AbfCMVCL (ORCPT ); Wed, 13 Mar 2019 17:02:11 -0400 X-UUID: df365853464e4ac583d7f624e544b023-20190314 X-UUID: df365853464e4ac583d7f624e544b023-20190314 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1420528183; Thu, 14 Mar 2019 05:02:05 +0800 Received: from MTKMBS01DR.mediatek.inc (172.21.101.111) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 14 Mar 2019 05:02:03 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01dr.mediatek.inc (172.21.101.111) 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:02 +0800 From: To: , , CC: , , , , Sean Wang Subject: [PATCH v1 2/3] Bluetooth: mediatek: Use module_sdio_driver helper Date: Thu, 14 Mar 2019 05:01:59 +0800 Message-ID: <97430233d791cf69398e6a5f568a61ad42077249.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 X-TM-SNTS-SMTP: F6112C37EDFCC92A8D27299F254CEB6AC4F3E204492C4CE66884824D96311BD32000:8 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: Ulf Hansson Suggested-by: Marcel Holtmann Signed-off-by: Sean Wang --- drivers/bluetooth/btmtksdio.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/bluetooth/btmtksdio.c b/drivers/bluetooth/btmtksdio.c index 23cf63888bac..ca7f28f439da 100644 --- a/drivers/bluetooth/btmtksdio.c +++ b/drivers/bluetooth/btmtksdio.c @@ -956,20 +956,7 @@ static struct sdio_driver btmtksdio_driver = { .id_table = btmtksdio_table, }; -static int __init btmtksdio_init(void) -{ - BT_INFO("MediaTek Bluetooth SDIO driver ver %s", VERSION); - - return sdio_register_driver(&btmtksdio_driver); -} - -static void __exit btmtksdio_exit(void) -{ - sdio_unregister_driver(&btmtksdio_driver); -} - -module_init(btmtksdio_init); -module_exit(btmtksdio_exit); +module_sdio_driver(btmtksdio_driver); MODULE_AUTHOR("Sean Wang "); MODULE_DESCRIPTION("MediaTek Bluetooth SDIO driver ver " VERSION); -- 2.18.0