mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
mtd: nand: omap: fix error return code in omap_nand_probe()
Fix to return a negative error code from the error handling case instead of 0, to more closely match the rest of this function. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Acked-by: Pekon Gupta <pekon@ti.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
5961ad2cb4
commit
9211439b8a
1 changed files with 2 additions and 1 deletions
|
|
@ -1953,7 +1953,8 @@ static int omap_nand_probe(struct platform_device *pdev)
|
|||
nand_chip->ecc.read_page = omap_read_page_bch;
|
||||
nand_chip->ecc.write_page = omap_write_page_bch;
|
||||
/* This ECC scheme requires ELM H/W block */
|
||||
if (is_elm_present(info, pdata->elm_of_node, BCH8_ECC) < 0) {
|
||||
err = is_elm_present(info, pdata->elm_of_node, BCH8_ECC);
|
||||
if (err < 0) {
|
||||
pr_err("nand: error: could not initialize ELM\n");
|
||||
goto return_error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue