mtd: nand: pxa3xx: Clean pxa_ecc_init() error handling
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Wed, 14 May 2014 17:58:07 +0000 (14:58 -0300)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 21 May 2014 19:55:08 +0000 (12:55 -0700)
commiteee0166d8ead9d719d794df3e66acd8f83630e05
treebae7bea4e395c86bf5389d731c8f409a4b861315
parent67a9ad9b8a6f6ea76ef8fc484ae49970d72d5534
mtd: nand: pxa3xx: Clean pxa_ecc_init() error handling

Let's make pxa_ecc_init() return a negative errno on error or zero
if succesful, which is standard kernel practice. Also, report the
selected ECC strength and step size, which is important information.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/pxa3xx_nand.c