commit | 876ba603c9e0fa7885f89a35ed221792caea8034 | [log] [tgz] |
---|---|---|
author | Boris Brezillon <boris.brezillon@bootlin.com> | Sun Nov 11 08:55:12 2018 +0100 |
committer | Miquel Raynal <miquel.raynal@bootlin.com> | Fri Dec 07 10:38:25 2018 +0100 |
tree | d42f800cdd7d724555cbb3b8b1c5fdab88841fbf | |
parent | 8bbc3c0850d0668ac7cf0f5b129ffae8c810247f [diff] |
mtd: rawnand: ams-delta: Check mtd_device_register() return code mtd_device_register() can fail, and when it does we should propagate the error and cleanup what has been done before. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Tested-by: Janusz Krzysztofik <jmkrzyszt@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>