mtd: atmel_nand: replace pmecc enable code with one function.
mtd: atmel_nand: replace pmecc enable code with one function.

Signed-off-by: Josh Wu <5d315a13f7549d1ecf8e62305448b567ef831df9@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <9fc55922e47e21cb004bb878f69efa10ab51cf02@jcrosoft.com>
Signed-off-by: Artem Bityutskiy <2f96f8cd3e2780a209d0ab27d1b44624d0019d3f@linux.intel.com>
Signed-off-by: David Woodhouse <b460d66aaf00c296a3db1c1d9eeafc081d5f7d70@intel.com>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs