From patchwork Tue Aug 7 05:07:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10553 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id AB75624061 for ; Tue, 7 Aug 2012 05:09:16 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 6F732A18EEE for ; Tue, 7 Aug 2012 05:09:16 +0000 (UTC) Received: by yhpp61 with SMTP id p61so1423461yhp.11 for ; Mon, 06 Aug 2012 22:09:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=RPuIBDvZ6EVjcAFA4DAU/s434tnBM600xxFWbK+v65E=; b=kVWCtBc9z+4WfjBanyNbk0sd/N+Wir8SBw1fN53IxgxqjjnCl7mmom4/yqV7GC9tTj CKvpzD25MKIRYv1Qmdrjmzlanx6EVWVgaBjfV4mVHQXN+nKLF6Z9cR7hqQULzhvLL3+X OKfIONddHgY1ZKns3aQquchomkd/OzF1J0JBPYPx6zAuiwpO8rBwEtnUwBWfJqqV3VYq CVTjd2WzkmqmipmwrPMpS5u3DMX2mn8J7AzR/Z1J6ErE/9PA5EGbJFFMLRFWRUn5gZju frHXXiV1pFlb3W2ViAVypyzFtxdPJUreg7il39Q9vJs4rL5PmgUi4nYc+M3sO38IppR4 bkiQ== Received: by 10.50.163.5 with SMTP id ye5mr7438888igb.51.1344316155471; Mon, 06 Aug 2012 22:09:15 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.87.40 with SMTP id u8csp477025igz; Mon, 6 Aug 2012 22:09:14 -0700 (PDT) Received: by 10.68.241.35 with SMTP id wf3mr24615481pbc.102.1344316154519; Mon, 06 Aug 2012 22:09:14 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id gk6si23894606pbc.185.2012.08.06.22.09.13 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Aug 2012 22:09:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by pbcmd12 with SMTP id md12so5649909pbc.37 for ; Mon, 06 Aug 2012 22:09:13 -0700 (PDT) Received: by 10.68.224.170 with SMTP id rd10mr24557512pbc.106.1344316153443; Mon, 06 Aug 2012 22:09:13 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id qd10sm10391105pbb.38.2012.08.06.22.09.08 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Aug 2012 22:09:12 -0700 (PDT) From: Sachin Kamat To: linux-bluetooth@vger.kernel.org Cc: marcel@holtmann.org, gustavo@padovan.org, johan.hedberg@gmail.com, raja_mani@ti.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] Bluetooth: Use module_platform_driver() in btwilink.c file Date: Tue, 7 Aug 2012 10:37:45 +0530 Message-Id: <1344316065-2032-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQlGcWbJZ36rnWFKCNaXHyd7EsOkXG35Tm7ftDCyS7Te+uyvCGgQ43KN8sXojO5BdnVOJXlQ module_platform_driver() makes the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Sachin Kamat Acked-by: Marcel Holtmann --- This patch is based on bluetooth-next tree and is compile tested. --- drivers/bluetooth/btwilink.c | 16 +--------------- 1 files changed, 1 insertions(+), 15 deletions(-) diff --git a/drivers/bluetooth/btwilink.c b/drivers/bluetooth/btwilink.c index 4ad7b35..60abf59 100644 --- a/drivers/bluetooth/btwilink.c +++ b/drivers/bluetooth/btwilink.c @@ -358,21 +358,7 @@ static struct platform_driver btwilink_driver = { }, }; -/* ------- Module Init/Exit interfaces ------ */ -static int __init btwilink_init(void) -{ - BT_INFO("Bluetooth Driver for TI WiLink - Version %s", VERSION); - - return platform_driver_register(&btwilink_driver); -} - -static void __exit btwilink_exit(void) -{ - platform_driver_unregister(&btwilink_driver); -} - -module_init(btwilink_init); -module_exit(btwilink_exit); +module_platform_driver(btwilink_driver); /* ------ Module Info ------ */