From patchwork Tue Jan 22 01:12:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kim Kukjin X-Patchwork-Id: 2015021 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 18E043FD1A for ; Tue, 22 Jan 2013 01:16:16 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TxSQq-0003bh-D1; Tue, 22 Jan 2013 01:13:44 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TxSQE-0003V1-KM for linux-arm-kernel@lists.infradead.org; Tue, 22 Jan 2013 01:13:07 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MH000L5461GPK90@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 22 Jan 2013 10:12:59 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 64.5E.03918.B97EDF05; Tue, 22 Jan 2013 10:12:59 +0900 (KST) X-AuditID: cbfee61a-b7f7d6d000000f4e-7f-50fde79b85eb Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 44.5E.03918.B97EDF05; Tue, 22 Jan 2013 10:12:59 +0900 (KST) Received: from localhost.localdomain ([105.128.18.183]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MH000NXU61A2ED0@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 22 Jan 2013 10:12:59 +0900 (KST) From: Kukjin Kim To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 3/6] ARM: S3C2412: Remove useless codes mach-s3c2412/gpio.c Date: Mon, 21 Jan 2013 17:12:08 -0800 Message-id: <1358817131-27169-4-git-send-email-kgene.kim@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1358817131-27169-1-git-send-email-kgene.kim@samsung.com> References: <1358817131-27169-1-git-send-email-kgene.kim@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrELMWRmVeSWpSXmKPExsVy+t8zA93Zz/8GGOyZaGCx6fE1VgdGj81L 6gMYo7hsUlJzMstSi/TtErgytu5/xVZwRrji8Y8e1gbGuQJdjJwcEgImEn9vzmWHsMUkLtxb z9bFyMUhJLCMUaJtz0sWmKJ5U28xQSSmM0q8vfSQBcLZwCRx4OR9sCo2AQ2Jw++fAY3i4BAR 8JZYfk0RJMwsoCZx49BbZhBbGCj8/l0jK4jNIqAqsebWVSYQm1fAVWL3ws1MEMsUJbqfTWAD sTkF3CS2z58KNl4IqObS+16w6yQELrNJdCy/wQ4xSEDi2+RDLCB7JQRkJTYdYIaYIylxcMUN lgmMwgsYGVYxiqYWJBcUJ6XnGuoVJ+YWl+al6yXn525ihISg1A7GlQ0WhxgFOBiVeHgtHv0N EGJNLCuuzD3EKMHBrCTCOyMKKMSbklhZlVqUH19UmpNafIgxGWj5RGYp0eR8YHzklcQbGhub mJmYmphbmpqbkiasJM7LeOpJgJBAemJJanZqakFqEcwWJg5OqQZGB5nwex13RHzOLwmvuv0w wfwgy/l+kekVRSdcGE8unJwV7fWwcyvD44PCE1YHFiwxdDp8auXXC6/vWU1qr/+l7b3m4sYK 3slSdVMssk5ZfOE4f6rdbZ3WKr0fsS/XMPAuUKrck/7He9+/mtcrdTbqOzjO3WrGcuXD83ff F3avWfh+VniUV3RzlRJLcUaioRZzUXEiAKAZTv2FAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIIsWRmVeSWpSXmKPExsVy+t9jQd3Zz/8GGMw7IW+x6fE1VgdGj81L 6gMYoxoYbTJSE1NSixRS85LzUzLz0m2VvIPjneNNzQwMdQ0tLcyVFPISc1NtlVx8AnTdMnOA pioplCXmlAKFAhKLi5X07TBNCA1x07WAaYzQ9Q0JgusxMkADCesYM7buf8VWcEa44vGPHtYG xrkCXYycHBICJhLzpt5igrDFJC7cW8/WxcjFISQwnVHi7aWHLBDOBiaJAyfvs4BUsQloSBx+ /4y9i5GDQ0TAW2L5NUWQMLOAmsSNQ2+ZQWxhoPD7d42sIDaLgKrEmltXwRbwCrhK7F64GWqZ okT3swlsIDangJvE9vlTwcYLAdVcet/LNoGRdwEjwypG0dSC5ILipPRcQ73ixNzi0rx0veT8 3E2M4AB/JrWDcWWDxSFGAQ5GJR5ei0d/A4RYE8uKK3MPMUpwMCuJ8M6IAgrxpiRWVqUW5ccX leakFh9iTAa6aiKzlGhyPjD68kriDY1NzIwsjcwsjEzMzUkTVhLnZTz1JEBIID2xJDU7NbUg tQhmCxMHp1QDYx7zmbdHXd8em9m1m+n9usKNM48+4v7Ayh7eneRrWnneQ1wh6c0mY6GFrV90 Xf3iOR8yLHj87Tf/yZ+TE6Y4y7vOdtr4U5NVS7k7K3RJQsr14qNSnSp5zyO4IjLvJtsVafkm 8+eYJH2++v3PDzm51EX5FraqaiZZC2YtjllkrrYwdMIlT/FYJZbijERDLeai4kQA9KMTaLQC AAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130121_201306_907833_60DC0B42 X-CRM114-Status: GOOD ( 14.28 ) X-Spam-Score: -7.6 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.24 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Kukjin Kim 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 Signed-off-by: Kukjin Kim --- arch/arm/mach-s3c2412/gpio.c | 62 ------------------------- arch/arm/mach-s3c24xx/include/mach/hardware.h | 6 --- 2 files changed, 68 deletions(-) delete mode 100644 arch/arm/mach-s3c2412/gpio.c diff --git a/arch/arm/mach-s3c2412/gpio.c b/arch/arm/mach-s3c2412/gpio.c deleted file mode 100644 index 4526f6b..0000000 --- a/arch/arm/mach-s3c2412/gpio.c +++ /dev/null @@ -1,62 +0,0 @@ -/* linux/arch/arm/mach-s3c2412/gpio.c - * - * Copyright (c) 2007 Simtec Electronics - * Ben Dooks - * - * http://armlinux.simtec.co.uk/. - * - * S3C2412/S3C2413 specific GPIO support - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - -#include -#include -#include -#include -#include - -#include -#include - -#include -#include - -#include - -int s3c2412_gpio_set_sleepcfg(unsigned int pin, unsigned int state) -{ - struct samsung_gpio_chip *chip = samsung_gpiolib_getchip(pin); - unsigned long offs = pin - chip->chip.base; - unsigned long flags; - unsigned long slpcon; - - offs *= 2; - - if (pin < S3C2410_GPB(0)) - return -EINVAL; - - if (pin >= S3C2410_GPF(0) && - pin <= S3C2410_GPG(16)) - return -EINVAL; - - if (pin > S3C2410_GPH(16)) - return -EINVAL; - - local_irq_save(flags); - - slpcon = __raw_readl(chip->base + 0x0C); - - slpcon &= ~(3 << offs); - slpcon |= state << offs; - - __raw_writel(slpcon, chip->base + 0x0C); - - local_irq_restore(flags); - - return 0; -} - -EXPORT_SYMBOL(s3c2412_gpio_set_sleepcfg); diff --git a/arch/arm/mach-s3c24xx/include/mach/hardware.h b/arch/arm/mach-s3c24xx/include/mach/hardware.h index aef5631..a6cc14a 100644 --- a/arch/arm/mach-s3c24xx/include/mach/hardware.h +++ b/arch/arm/mach-s3c24xx/include/mach/hardware.h @@ -23,12 +23,6 @@ extern int s3c2440_set_dsc(unsigned int pin, unsigned int value); #endif /* CONFIG_CPU_S3C2440 */ -#ifdef CONFIG_CPU_S3C2412 - -extern int s3c2412_gpio_set_sleepcfg(unsigned int pin, unsigned int state); - -#endif /* CONFIG_CPU_S3C2412 */ - #endif /* __ASSEMBLY__ */ #include