From patchwork Tue Mar 9 17:04:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 84350 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 o29H4ABi012580 for ; Tue, 9 Mar 2010 17:04:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755293Ab0CIREN (ORCPT ); Tue, 9 Mar 2010 12:04:13 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:36356 "EHLO mail-fx0-f213.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753295Ab0CIREM (ORCPT ); Tue, 9 Mar 2010 12:04:12 -0500 Received: by mail-fx0-f213.google.com with SMTP id 5so1524568fxm.29 for ; Tue, 09 Mar 2010 09:04:12 -0800 (PST) Received: by 10.223.100.216 with SMTP id z24mr110755fan.5.1268154251727; Tue, 09 Mar 2010 09:04:11 -0800 (PST) Received: from localhost (deeprootsystems.com [216.254.16.51]) by mx.google.com with ESMTPS id 9sm11422249fks.56.2010.03.09.09.04.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Mar 2010 09:04:11 -0800 (PST) From: Kevin Hilman To: linux-omap@vger.kernel.org Subject: [PATCH/RFT 1/2] OMAP2: cpu_is_omap2*: optimize out unused code. Date: Tue, 9 Mar 2010 09:04:00 -0800 Message-Id: <1268154241-24788-2-git-send-email-khilman@deeprootsystems.com> X-Mailer: git-send-email 1.7.0.2 In-Reply-To: <1268154241-24788-1-git-send-email-khilman@deeprootsystems.com> References: <1268154241-24788-1-git-send-email-khilman@deeprootsystems.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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]); Tue, 09 Mar 2010 17:04:14 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h index ed8786c..7514174 100644 --- a/arch/arm/plat-omap/include/plat/cpu.h +++ b/arch/arm/plat-omap/include/plat/cpu.h @@ -167,10 +167,14 @@ IS_OMAP_SUBCLASS(443x, 0x443) #if defined(MULTI_OMAP2) # if defined(CONFIG_ARCH_OMAP2) # undef cpu_is_omap24xx -# undef cpu_is_omap242x -# undef cpu_is_omap243x # define cpu_is_omap24xx() is_omap24xx() +# endif +# if defined (CONFIG_ARCH_OMAP2420) +# undef cpu_is_omap242x # define cpu_is_omap242x() is_omap242x() +# endif +# if defined (CONFIG_ARCH_OMAP2430) +# undef cpu_is_omap243x # define cpu_is_omap243x() is_omap243x() # endif # if defined(CONFIG_ARCH_OMAP3)