From: Wolfgang Denk Date: Wed, 02 Dec 2009 23:44:51 +0100 Subject: [U-Boot] [PATCH] ppc: Added macro to test for specific SVR revision In-Reply-To: <1258642215-13948-1-git-send-email-galak@kernel.crashing.org> References: <1258642215-13948-1-git-send-email-galak@kernel.crashing.org> Message-ID: <20091202224451.77BF44C025@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kumar Gala, In message <1258642215-13948-1-git-send-email-galak@kernel.crashing.org> you wrote: > Various SoC errata are specific to a given revision of silicon this > gives us a simple macro to use when doing such tests. You probably want to s/silicon this/silicon. This patch/ ? > Signed-off-by: Kumar Gala > --- > include/asm-ppc/processor.h | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h > index f61778f..cda9210 100644 > --- a/include/asm-ppc/processor.h > +++ b/include/asm-ppc/processor.h > @@ -992,6 +992,10 @@ > #endif > #endif > > +#define IS_SVR_REV(svr, maj, min) \ > + ((SVR_MAJ(svr) == maj) && (SVR_MIN(svr) == min)) > + > + Please remove one of the blank lines. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I don't know if it's what you want, but it's what you get. :-) - Larry Wall in <10502@jpl-devvax.JPL.NASA.GOV>