aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/nand/mpc5121_nfc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c
index d7333f4dae86..f713b15fa454 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,
666 666
667 /* 667 /*
668 * Check SoC revision. This driver supports only NFC 668 * Check SoC revision. This driver supports only NFC
669 * in MPC5121 revision 2. 669 * in MPC5121 revision 2 and MPC5123 revision 3.
670 */ 670 */
671 rev = (mfspr(SPRN_SVR) >> 4) & 0xF; 671 rev = (mfspr(SPRN_SVR) >> 4) & 0xF;
672 if (rev != 2) { 672 if ((rev != 2) && (rev != 3)) {
673 dev_err(dev, "SoC revision %u is not supported!\n", rev); 673 dev_err(dev, "SoC revision %u is not supported!\n", rev);
674 return -ENXIO; 674 return -ENXIO;
675 } 675 }