[MTD] [OneNAND] Do not release chip twice
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
This commit is contained in:
parent
d0bf37932a
commit
d0b36d8cc8
@ -1447,9 +1447,6 @@ static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to,
|
|||||||
buf += thislen;
|
buf += thislen;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Deselect and wake up anyone waiting on the device */
|
|
||||||
onenand_release_device(mtd);
|
|
||||||
|
|
||||||
ops->retlen = written;
|
ops->retlen = written;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user