mtd: nand/fsmc: Use dev_err to report error scenario
authorVipin Kumar <vipin.kumar@st.com>
Wed, 14 Mar 2012 06:17:16 +0000 (11:47 +0530)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:59:49 +0000 (00:59 +0100)
commit712c4add03277197168210bb628b8273e36adf76
tree5242f3ea2ad38565e3f975ae84119eeb502bf392
parent82b9dbe2e0f6870bf385b759b91e403b62a60c5e
mtd: nand/fsmc: Use dev_err to report error scenario

fsmc controller takes time to calculate the bch8 codes and the error offsets.
The calculate logic checks for completion upto a timeout. This patch adds a
error print when this timer expires and the ecc or error offsets are not yet
calculated.

Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Reviewed-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/fsmc_nand.c