]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mvebu: turris_omnia: fix leaked mtd device
authorMarek Behún <marek.behun@nic.cz>
Sat, 25 Sep 2021 00:49:18 +0000 (02:49 +0200)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:50:55 +0000 (18:50 +0300)
commit4d515607ddab653492033323e7666a92adfdf7b1
tree2f97d57b2d6fc6831e28c00d16f172bb2a09c414
parent019801863b64c69e98c7ce04ae6380af560affd0
arm: mvebu: turris_omnia: fix leaked mtd device

After getting MTD device via get_mtd_device_nm(), we need to put it with
put_mtd_device(), otherwise we get

  Removing MTD device #0 (mx25l6405d) with use count 1

before booting kernel.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Pali Rohár <pali@kernel.org>
Tested-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_omnia/turris_omnia.c