commit | 6f533c463105472b71587b9bf8532f34f9d60deb | [log] [tgz] |
---|---|---|
author | Miquel Raynal <miquel.raynal@bootlin.com> | Sat Apr 21 20:00:39 2018 +0200 |
committer | Boris Brezillon <boris.brezillon@bootlin.com> | Sun Apr 29 08:56:44 2018 +0200 |
tree | 1be0d443ee7197a438956b8897769f09bbbe3a52 | |
parent | 9326dc754c64996ccdc354413674f42486590574 [diff] |
mtd: rawnand: hisi504: fix the probe function error path An error after nand_scan_tail() should trigger a nand_cleanup() and not a nand_release(). The latter doing an mtd_device_unregister() which is not needed if mtd_device_register() failed. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>