]> git.baikalelectronics.ru Git - uboot.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)
commitd8bf177df7082bb5cefd00aacbaa54d18d75ac84
tree2f97d57b2d6fc6831e28c00d16f172bb2a09c414
parent8ca5a330e2ff0d86ffdd02efd2cbcb22fc26b643
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