From: Felipe Balbi Subject: [RFT/PATCH 03/10] cbus: retu: move module_* close to the matching symbol Date: Mon, 3 Jan 2011 09:49:41 +0200 Message-ID: <1294040988-21191-4-git-send-email-balbi@ti.com> References: <1294040988-21191-1-git-send-email-balbi@ti.com> Return-path: Received: from na3sys009aog112.obsmtp.com ([74.125.149.207]:55453 "EHLO na3sys009aog112.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751873Ab1ACHuJ (ORCPT ); Mon, 3 Jan 2011 02:50:09 -0500 Received: by eyg5 with SMTP id 5so7208053eyg.30 for ; Sun, 02 Jan 2011 23:50:06 -0800 (PST) In-Reply-To: <1294040988-21191-1-git-send-email-balbi@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Tony Lindgren Cc: Linux OMAP Mailing List , Felipe Balbi Just to make checkpatch.pl a bit happier, move subsys_initcall() and module_exit() closer to the init and exit functions of the driver. Signed-off-by: Felipe Balbi --- drivers/cbus/retu.c | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/drivers/cbus/retu.c b/drivers/cbus/retu.c index 39d4fa4..0053d43 100644 --- a/drivers/cbus/retu.c +++ b/drivers/cbus/retu.c @@ -498,25 +498,16 @@ static struct platform_driver retu_driver = { }, }; -/** - * retu_init - initialise Retu driver - * - * Initialise the Retu driver and return 0 if everything worked ok - */ static int __init retu_init(void) { return platform_driver_probe(&retu_driver, retu_probe); } +subsys_initcall(retu_init); -/* - * Cleanup - */ static void __exit retu_exit(void) { platform_driver_unregister(&retu_driver); } - -subsys_initcall(retu_init); module_exit(retu_exit); MODULE_DESCRIPTION("Retu ASIC control"); -- 1.7.3.4.598.g85356