commit | 553b0c6416e4426d0c8e552ff809c0a590dc3989 | [log] [tgz] |
---|---|---|
author | Miquel Raynal <miquel.raynal@bootlin.com> | Sat Apr 21 20:00:43 2018 +0200 |
committer | Boris Brezillon <boris.brezillon@bootlin.com> | Sun Apr 29 08:56:46 2018 +0200 |
tree | 0bfb15b3beac28db5b46461f3a5b89db8aaeeaa4 | |
parent | e0ea20bfb46529c9e98165c8135ea6d2c64a2bac [diff] |
mtd: rawnand: lpc32xx_slc: 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>