From patchwork Wed Sep 5 09:39:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 11190 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 EC29F23EFF for ; Wed, 5 Sep 2012 09:42:21 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id CA02AA188AC for ; Wed, 5 Sep 2012 09:41:28 +0000 (UTC) Received: by iafj25 with SMTP id j25so455123iaf.11 for ; Wed, 05 Sep 2012 02:42:21 -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:in-reply-to:references :x-gm-message-state; bh=UbcO/4xEXULcaQzLvAO2rmMThaNAhy2Juhuo8Bj1LwM=; b=X9oZ4k1iTaO7jXctZojaLupR1fHcHiOp2k/f++qxnP+T9kXF5KY+thZd1Negw7wazw 1kfFx7RPB7uaUzdkYEStjkr4vm4AO/F/Si0bfd5qeqvcJfhEqnUILunRkEVYykAehhVC C5YHURHKVMeZNAscheDLV0m8PpjHZZVDRz0z3kXsGW8t7g3MNdtCOSjafFKjaejYhOaK psiLQqtS6/VITrbRGM37qZZcNCvIEq25MTdPK5nTV7PAOMSftqufVgOYX/N0Uc99uPvP 8DzynlveYG9/bisdisAwTsL8j905/qpXi/CPGjg29isXX2lmlBGS+Dv8mghSy9PyVqvk WvGQ== Received: by 10.42.84.69 with SMTP id k5mr20607196icl.5.1346838140925; Wed, 05 Sep 2012 02:42:20 -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.184.232 with SMTP id ex8csp242928igc; Wed, 5 Sep 2012 02:42:20 -0700 (PDT) Received: by 10.68.242.34 with SMTP id wn2mr12712026pbc.53.1346838140242; Wed, 05 Sep 2012 02:42:20 -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 kt9si1794946pbc.80.2012.09.05.02.42.20 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Sep 2012 02:42:20 -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 mail-pb0-f50.google.com with SMTP id md12so729192pbc.37 for ; Wed, 05 Sep 2012 02:42:20 -0700 (PDT) Received: by 10.68.132.234 with SMTP id ox10mr28749950pbb.41.1346838139932; Wed, 05 Sep 2012 02:42:19 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id gt2sm1049314pbc.62.2012.09.05.02.42.16 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Sep 2012 02:42:19 -0700 (PDT) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/2] ARM: S3C24XX: Use module_platform_driver macro in mach-osiris-dvs.c Date: Wed, 5 Sep 2012 15:09:29 +0530 Message-Id: <1346837969-11344-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1346837969-11344-1-git-send-email-sachin.kamat@linaro.org> References: <1346837969-11344-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmWJqJ7S8FMmyaK0toVxkMCSml7yU79NLS85q16X9S0lZNjNWYfd/ID8/LES7tTVzy+Q4r+ module_platform_driver simplifies the code by eliminating module_init and module_exit calls. Signed-off-by: Sachin Kamat --- arch/arm/mach-s3c24xx/mach-osiris-dvs.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/arch/arm/mach-s3c24xx/mach-osiris-dvs.c b/arch/arm/mach-s3c24xx/mach-osiris-dvs.c index ad2792d..5876c6b 100644 --- a/arch/arm/mach-s3c24xx/mach-osiris-dvs.c +++ b/arch/arm/mach-s3c24xx/mach-osiris-dvs.c @@ -175,18 +175,7 @@ static struct platform_driver osiris_dvs_driver = { }, }; -static int __init osiris_dvs_init(void) -{ - return platform_driver_register(&osiris_dvs_driver); -} - -static void __exit osiris_dvs_exit(void) -{ - platform_driver_unregister(&osiris_dvs_driver); -} - -module_init(osiris_dvs_init); -module_exit(osiris_dvs_exit); +module_platform_driver(osiris_dvs_driver); MODULE_DESCRIPTION("Simtec OSIRIS DVS support"); MODULE_AUTHOR("Ben Dooks ");