From patchwork Fri Feb 15 12:45:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 2147151 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id D60D43FCF6 for ; Fri, 15 Feb 2013 13:06:57 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U6Kxm-0004L4-Vo; Fri, 15 Feb 2013 13:04:26 +0000 Received: from mail-wg0-f46.google.com ([74.125.82.46]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U6Kgm-0007BV-BI for linux-arm-kernel@lists.infradead.org; Fri, 15 Feb 2013 12:46:53 +0000 Received: by mail-wg0-f46.google.com with SMTP id fg15so2690652wgb.1 for ; Fri, 15 Feb 2013 04:46:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=4c55pADba+U1aTJMlH0iXlBYiGg51LZJtQVSs4T8i20=; b=fubNx1WBTzia2/FGaJfrMNx+7KRW76nUhN8Yj5DeDb8XYL2orQeMsj2M3w/zigfOGr EnWHOHheHOsB+bLLxGG/nNl91qeTa7MhMNBaGqz9Tx8Gg9GIIt88POQBkniHKSFLRm84 R6pX6TeTXUC6pnou+4UC85dIpm4+LG4HYpv/uw9eg3wdUMGyX7SALEGeKZW7/4pewxmd 4FlS8Ok9vUwiV8tXv4E0VAsrU8eUoE3ST0z1fJIAU+hXGpFIVbiqDzxQmaPp4dWu+yM3 VOCsEgjp9CdV3gAkRlv6sThWg+cNpQTwYyVpo0QIc2TsD7YXdBvy0m84A3baQSaGldQ6 6HlA== X-Received: by 10.194.76.237 with SMTP id n13mr3860791wjw.57.1360932410397; Fri, 15 Feb 2013 04:46:50 -0800 (PST) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPS id bs6sm5133904wib.4.2013.02.15.04.46.48 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Feb 2013 04:46:49 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 31/40] abx500-chargalg: Use module_platform_driver() rather Date: Fri, 15 Feb 2013 12:45:01 +0000 Message-Id: <1360932310-30065-32-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1360932310-30065-1-git-send-email-lee.jones@linaro.org> References: <1360932310-30065-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQn19/t+smrgVbqgFE0eRwbCNimYXpRv21Io19sGMaFhAssq2KhOGevUVPg1ztR422S9wv+q X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130215_074652_694676_D46D09FB X-CRM114-Status: GOOD ( 10.63 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.46 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: sameo@linux.intel.com, arnd@arndb.de, srinidhi kasagar , cbouatmailru@gmail.com, Lee Jones , linus.walleij@stericsson.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: srinidhi kasagar deprecate some boilerplate code by using module_platform_driver helper macro. No functional changes. Signed-off-by: srinidhi kasagar Signed-off-by: Lee Jones --- drivers/power/abx500_chargalg.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/power/abx500_chargalg.c b/drivers/power/abx500_chargalg.c index 55c9d2e..7e4bc01 100644 --- a/drivers/power/abx500_chargalg.c +++ b/drivers/power/abx500_chargalg.c @@ -2083,18 +2083,7 @@ static struct platform_driver abx500_chargalg_driver = { }, }; -static int __init abx500_chargalg_init(void) -{ - return platform_driver_register(&abx500_chargalg_driver); -} - -static void __exit abx500_chargalg_exit(void) -{ - platform_driver_unregister(&abx500_chargalg_driver); -} - -module_init(abx500_chargalg_init); -module_exit(abx500_chargalg_exit); +module_platform_driver(abx500_chargalg_driver); MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Johan Palsson, Karl Komierowski");