mtd: cafe_nand: fix an & vs | mistake
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 9 Jun 2012 16:08:25 +0000 (19:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 15:47:49 +0000 (08:47 -0700)
commit41318b9db0e59e0ffc6e627251c8640d3307fc0f
tree45f43764dcc624da9e3b6b7711b7cc1369752358
parenta2f2aa2f0c648d1dc22cf9ef4990cfc0b721add8
mtd: cafe_nand: fix an & vs | mistake

commit 48f8b641297df49021093763a3271119a84990a2 upstream.

The intent here was clearly to set result to true if the 0x40000000 flag
was set.  But instead there was a | vs & typo and we always set result
to true.

Artem: check the spec at
wiki.laptop.org/images/5/5c/88ALP01_Datasheet_July_2007.pdf
and this fix looks correct.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/cafe_nand.c