Koen Vandeputte e10830193c generic: platform/mikrotik: release mtd device after use
The code uses get_mtd_device_nm() which must be followed by a call to
put_mtd_device() once the handle is no longer used.

This fixes spurious shutdown console messages such as:
[   83.099037] Removing MTD device #1 (hard_config) with use count 1

Reported-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
[Backported from master]
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2021-05-12 11:42:31 +02:00
..
2021-04-09 15:43:38 +02:00
2021-03-10 13:55:56 +01:00
2021-01-12 23:55:26 +01:00
2021-03-10 13:55:56 +01:00
2021-01-12 23:55:26 +01:00
2021-01-12 23:55:26 +01:00
2021-02-26 10:11:21 +01:00
2020-12-16 22:23:52 +01:00
2019-11-29 10:00:35 +01:00
2019-10-08 12:45:13 +02:00
2021-04-09 15:43:38 +02:00
2021-01-12 23:55:26 +01:00
2021-04-30 10:56:39 +02:00
2021-04-09 15:43:38 +02:00
2020-11-16 09:35:05 +01:00
2021-04-09 15:43:38 +02:00
2020-05-04 21:05:21 +02:00
2020-11-16 09:35:05 +01:00
2020-04-16 13:23:52 +02:00
2020-11-16 09:35:05 +01:00
2020-11-16 09:35:05 +01:00
2021-05-10 14:51:57 +02:00
2021-04-09 15:43:38 +02:00
2020-04-18 00:18:13 +02:00
2020-10-14 17:18:54 +02:00
2021-03-10 13:55:56 +01:00