From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH 7/11] Adding OMAP3430 support to plat-omap Date: Tue, 29 May 2007 09:51:51 -0700 Message-ID: <20070529165151.GB26322@atomide.com> References: <9C23CDD79DA20A479D4615857B2E2C47FF0E33@dlee13.ent.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces@linux.omap.com Errors-To: linux-omap-open-source-bounces@linux.omap.com To: andrzej zaborowski Cc: Linux OMAP List-Id: linux-omap@vger.kernel.org * andrzej zaborowski [070529 03:14]: >> @@ -279,7 +279,7 @@ int __init omap_sram_init(void) >> omap_detect_sram(); >> omap_map_sram(); >> >> - if (!cpu_is_omap24xx()) >> + if (!(cpu_is_omap24xx() || cpu_is_omap34xx())) >> omap1_sram_init(); >> else >> omap2_sram_init(); > > Maybe omap cpu_class_is_omap2() would be more apropriate in places like > this? I agree, that cuts down the if this and that clutter. Tony