From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tethra.basler.com (tethra.basler.com [206.107.254.19]) by ozlabs.org (Postfix) with ESMTP id D88F4B7D5C for ; Thu, 29 Apr 2010 08:33:19 +1000 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: [PATCH] mpc5121_nfc: Changed SVR check to allow MPC5123. Date: Wed, 28 Apr 2010 17:33:19 -0500 Message-ID: <181804936ABC2349BE503168465576460E95836C@exchserver.basler.com> From: "Steve Deiters" To: , List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , The revision in SVR for MPC5123 is 3. The NFC is the same as MPC5121 revision 2. --- drivers/mtd/nand/mpc5121_nfc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c index 191bf99..dc04d74 100644 --- a/drivers/mtd/nand/mpc5121_nfc.c +++ b/drivers/mtd/nand/mpc5121_nfc.c @@ -666,10 +666,10 @@ static int __devinit mpc5121_nfc_probe(struct of_device *op, =20 /* * Check SoC revision. This driver supports only NFC - * in MPC5121 revision 2. + * in MPC5121 revision 2 and MPC5123 revision 3. */ rev =3D (mfspr(SPRN_SVR) >> 4) & 0xF; - if (rev !=3D 2) { + if ((rev !=3D 2) && (rev !=3D 3)) { dev_err(dev, "SoC revision %u is not supported!\n", rev); return -ENXIO; } --=20 1.5.4.3