From patchwork Sat Jun 30 12:08:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sylwester Nawrocki X-Patchwork-Id: 1134311 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 0FD9940AC1 for ; Sat, 30 Jun 2012 12:13:29 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SkwVI-0000Et-Og; Sat, 30 Jun 2012 12:10:20 +0000 Received: from mail-ey0-f177.google.com ([209.85.215.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SkwUQ-0008Tn-GV for linux-arm-kernel@lists.infradead.org; Sat, 30 Jun 2012 12:09:27 +0000 Received: by mail-ey0-f177.google.com with SMTP id f11so1715834eaa.36 for ; Sat, 30 Jun 2012 05:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=t5tTkYZtTjXvqGRUzQJqIQaRWiWkjhQKEyGq7wEk604=; b=Qu4XIl5uUUhqwk7jxfyG7uH+LauZaByd5z8/Rgu1DADGF6zy+spyemfqCBFZuaHZXc AMg49ARwGRClJPkRaF528KKfE60HBUIedZA7P5r0QVPIgbpsg4pGT5XtL38sRCy4mjcN V2A3r1dvcQieSetUkogZxk0kRpYD04TFra164Fxu+UgdRrJyZpdFZFVkazLZNnTDDkQ2 6bd+xUOVFMKeqZOl8QxQ66Y0TqeFgo4Tr4ct5csJeyClA67tcVDD3gvsC+38LDhKza91 76q4JCvfZPUqhUwZdB897gZBLbkwlz+r+6eLIgAGu8cT9WpSxGhBaOaDl6bVCatVUZPE YJmA== Received: by 10.14.97.70 with SMTP id s46mr1474044eef.118.1341058166070; Sat, 30 Jun 2012 05:09:26 -0700 (PDT) Received: from localhost.localdomain (031011252076.warszawa.vectranet.pl. [31.11.252.76]) by mx.google.com with ESMTPS id a16sm16456798eeg.0.2012.06.30.05.09.24 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 30 Jun 2012 05:09:25 -0700 (PDT) From: Sylwester Nawrocki To: kgene.kim@samsung.com Subject: [PATCH 03/10] ARM: S3C24XX: Convert QT2410 board file to the gpiolib API Date: Sat, 30 Jun 2012 14:08:55 +0200 Message-Id: <1341058142-30438-4-git-send-email-sylvester.nawrocki@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1341058142-30438-1-git-send-email-sylvester.nawrocki@gmail.com> References: <1341058142-30438-1-git-send-email-sylvester.nawrocki@gmail.com> X-Spam-Note: CRM114 invocation failed 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.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sylvester.nawrocki[at]gmail.com) -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: Sylwester Nawrocki , linux-samsung-soc@vger.kernel.org, laforge@openmoko.org, linux-arm-kernel@lists.infradead.org, ben-linux@fluff.org 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 Replace SoC specific GPIO functions with the gpiolib API. The LED gpio is freed right after it is configured so it can be acquired in the s3c24xx_led driver. This change is required for converting the s3c24xx_led driver to the gpiolib API. Cc: laforge@openmoko.org Signed-off-by: Sylwester Nawrocki Acked-by: Harald Welte --- This change was only compile tested. If there is someone still using this board please provide a "Tested-by" tag. --- arch/arm/mach-s3c24xx/mach-qt2410.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-s3c24xx/mach-qt2410.c b/arch/arm/mach-s3c24xx/mach-qt2410.c index b868ddd..678bbca 100644 --- a/arch/arm/mach-s3c24xx/mach-qt2410.c +++ b/arch/arm/mach-s3c24xx/mach-qt2410.c @@ -47,7 +47,6 @@ #include #include -#include #include #include #include @@ -325,8 +324,9 @@ static void __init qt2410_machine_init(void) } s3c24xx_fb_set_platdata(&qt2410_fb_info); - s3c_gpio_cfgpin(S3C2410_GPB(0), S3C2410_GPIO_OUTPUT); - s3c2410_gpio_setpin(S3C2410_GPB(0), 1); + /* set initial state of the LED GPIO */ + WARN_ON(gpio_request_one(S3C2410_GPB(0), GPIOF_OUT_INIT_HIGH, NULL)); + gpio_free(S3C2410_GPB(0)); s3c24xx_udc_set_platdata(&qt2410_udc_cfg); s3c_i2c0_set_platdata(NULL);