From patchwork Thu Mar 14 13:11:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 2271171 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 86BE8DFB79 for ; Thu, 14 Mar 2013 13:18:16 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UG7zz-0001UW-E0; Thu, 14 Mar 2013 13:15:11 +0000 Received: from mail-ee0-f50.google.com ([74.125.83.50]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UG7x5-0008T7-CL for linux-arm-kernel@lists.infradead.org; Thu, 14 Mar 2013 13:12:15 +0000 Received: by mail-ee0-f50.google.com with SMTP id e51so1048868eek.23 for ; Thu, 14 Mar 2013 06:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=4hudhRPY1J0Qx/MU4rJgHfxVSM98JW9XiyTk/UT/5OU=; b=BSNprMCtvNTN2iu0jCC7vtzAOSjeJFL23cLSz2CM0UlJFLuL+YgijdkhZrFaKpfbsv mT7rEKOzjMMlUulbIk9Wm6pNO1MB3TZgfUa2R8SVlWU+7xKVmn+DYQa3fvgO4VYUpZNr dytqg1BeAAspZW6/vyP/MyFFCQkg9iIr2UBvNJpaWQwkYzRRpeCe+iQIeTpgr/rhMAa5 dVJDIodCyaxc3hUWv7Zwf4rKkswmis5qzA+Dvr+VsWbZwsCSSgT7TrOQKlrZDVBYIXOb Z2MxBMzjBZKvXWbyoXsUO8XPHvQH/fqocTU6WTPSC6iLpkCfjX2YMNF2OdkItE571b0Q pwGg== X-Received: by 10.14.5.6 with SMTP id 6mr6597542eek.42.1363266728932; Thu, 14 Mar 2013 06:12:08 -0700 (PDT) Received: from ld2036.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPS id q42sm3535083eem.14.2013.03.14.06.12.06 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Mar 2013 06:12:07 -0700 (PDT) From: Fabio Porcedda To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-ide@vger.kernel.org, lm-sensors@lm-sensors.org, linux-input@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: [PATCH 07/10] drivers: memory: use module_platform_driver_probe() Date: Thu, 14 Mar 2013 14:11:28 +0100 Message-Id: <1363266691-15757-9-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1363266691-15757-1-git-send-email-fabio.porcedda@gmail.com> References: <1363266691-15757-1-git-send-email-fabio.porcedda@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130314_091211_599266_12DB98C7 X-CRM114-Status: GOOD ( 10.35 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (fabio.porcedda[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.83.50 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Greg Kroah-Hartman , Aneesh V , Benoit Cousson X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch converts the drivers to use the module_platform_driver_probe() macro which makes the code smaller and a bit simpler. Signed-off-by: Fabio Porcedda Cc: Greg Kroah-Hartman Cc: Benoit Cousson Cc: Aneesh V --- drivers/memory/emif.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c index df08736..ecbc1a9 100644 --- a/drivers/memory/emif.c +++ b/drivers/memory/emif.c @@ -1841,18 +1841,8 @@ static struct platform_driver emif_driver = { }, }; -static int __init_or_module emif_register(void) -{ - return platform_driver_probe(&emif_driver, emif_probe); -} - -static void __exit emif_unregister(void) -{ - platform_driver_unregister(&emif_driver); -} +module_platform_driver_probe(emif_driver, emif_probe); -module_init(emif_register); -module_exit(emif_unregister); MODULE_DESCRIPTION("TI EMIF SDRAM Controller Driver"); MODULE_LICENSE("GPL"); MODULE_ALIAS("platform:emif");