diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2017-12-14 09:03:49 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-12-18 19:37:39 +0300 |
commit | 8b5c51a45c39c6d4f05c6f87d05f54b6c28f7c36 (patch) | |
tree | 6efc5f07c41a68a1708eb1c2824b9716ae91315c /drivers/ntb | |
parent | 8878b126df769831cb2fa4088c3806538e8305f5 (diff) | |
download | linux-8b5c51a45c39c6d4f05c6f87d05f54b6c28f7c36.tar.xz |
mtd: onenand: samsung: use devm_ function to simplify code and fix some leaks
Convert all error handling code in 's3c_onenand_probe()' to
resource-managed alternatives in order to simplify code.
This fixes a resource leak if 'platform_get_resource()' fails at line 872.
The 'request_irq()' at line 971 was also un-balanced. It is now
resource-managed.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/ntb')
0 files changed, 0 insertions, 0 deletions