From patchwork Thu Feb 25 11:14:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 81971 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1PBEqV4030868 for ; Thu, 25 Feb 2010 11:14:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759260Ab0BYLOv (ORCPT ); Thu, 25 Feb 2010 06:14:51 -0500 Received: from mail-gw0-f46.google.com ([74.125.83.46]:49537 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752916Ab0BYLOu (ORCPT ); Thu, 25 Feb 2010 06:14:50 -0500 Received: by gwj16 with SMTP id 16so1620969gwj.19 for ; Thu, 25 Feb 2010 03:14:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=JpnCKpv3v/hJKZvAAW+EBu0A880NlSZGwcXlyT41dFo=; b=K7lZc4q49n/MLBk7tor4IWZ+Es4heMsJMmRrKXWboGmg8ywPxZdSLfJ1fV9zBZIh4O UMbo8HAxg957jJSMer62swpUfguK+M1x8cqM7PbWg2dVcJCfCKkNYSA152f7FijxP0VY +wuAr8GW/5NC687zWQWO+Uxl0dlxVEtlflXg8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=eE3DyxLwBqScPO6O78arWTR0HsblNeXBJhraFmg6jFqgeGPbv9pqBOE3adRmGW0GPq 4xu/OveyvUKovlrBa91Mo78rjy+YkryOjxfETnk74hxRp4BiBu5WZpdLuECD7+hLkoNg c5D/1kx80peD461bcvVQRE2w/3fl0t7WfydMQ= Received: by 10.101.187.7 with SMTP id o7mr1445949anp.0.1267096490034; Thu, 25 Feb 2010 03:14:50 -0800 (PST) Received: from ?127.0.0.1? (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id 15sm1955988gxk.6.2010.02.25.03.14.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 25 Feb 2010 03:14:48 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Thu, 25 Feb 2010 20:14:28 +0900 Message-Id: <20100225111428.6891.89641.sendpatchset@t400s> Subject: [PATCH] sh: remove dead LED code for migo-r and ms7724se Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 25 Feb 2010 11:14:52 +0000 (UTC) --- 0001/arch/sh/boards/mach-migor/setup.c +++ work/arch/sh/boards/mach-migor/setup.c 2010-02-25 19:53:23.000000000 +0900 @@ -496,23 +496,11 @@ static int __init migor_devices_setup(vo &migor_sdram_enter_end, &migor_sdram_leave_start, &migor_sdram_leave_end); -#ifdef CONFIG_PM /* Let D11 LED show STATUS0 */ gpio_request(GPIO_FN_STATUS0, NULL); /* Lit D12 LED show PDSTATUS */ gpio_request(GPIO_FN_PDSTATUS, NULL); -#else - /* Lit D11 LED */ - gpio_request(GPIO_PTJ7, NULL); - gpio_direction_output(GPIO_PTJ7, 1); - gpio_export(GPIO_PTJ7, 0); - - /* Lit D12 LED */ - gpio_request(GPIO_PTJ5, NULL); - gpio_direction_output(GPIO_PTJ5, 1); - gpio_export(GPIO_PTJ5, 0); -#endif /* SMC91C111 - Enable IRQ0, Setup CS4 for 16-bit fast access */ gpio_request(GPIO_FN_IRQ0, NULL); --- 0008/arch/sh/boards/mach-se/7724/setup.c +++ work/arch/sh/boards/mach-se/7724/setup.c 2010-02-25 19:56:15.000000000 +0900 @@ -607,7 +607,6 @@ static int __init devices_setup(void) /* turn on USB clocks, use external clock */ __raw_writew((__raw_readw(PORT_MSELCRB) & ~0xc000) | 0x8000, PORT_MSELCRB); -#ifdef CONFIG_PM /* Let LED9 show STATUS2 */ gpio_request(GPIO_FN_STATUS2, NULL); @@ -616,22 +615,6 @@ static int __init devices_setup(void) /* Lit LED11 show PDSTATUS */ gpio_request(GPIO_FN_PDSTATUS, NULL); -#else - /* Lit LED9 */ - gpio_request(GPIO_PTJ6, NULL); - gpio_direction_output(GPIO_PTJ6, 1); - gpio_export(GPIO_PTJ6, 0); - - /* Lit LED10 */ - gpio_request(GPIO_PTJ5, NULL); - gpio_direction_output(GPIO_PTJ5, 1); - gpio_export(GPIO_PTJ5, 0); - - /* Lit LED11 */ - gpio_request(GPIO_PTJ7, NULL); - gpio_direction_output(GPIO_PTJ7, 1); - gpio_export(GPIO_PTJ7, 0); -#endif /* enable USB0 port */ __raw_writew(0x0600, 0xa40501d4);