kernel: fix deferred mtdblock registration
authorDaniel Golle <daniel@makrotopia.org>
Mon, 12 Apr 2021 20:40:35 +0000 (21:40 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 12 Apr 2021 21:19:49 +0000 (22:19 +0100)
commite9c8c834de60a9199a41664c06430e74d15f2973
tree7229a679f0987f3c34eb8f8476130fd326a08dfe
parent9aa66b8ce730aebff76d353392151708a897a3a0
kernel: fix deferred mtdblock registration

Check if gendisk is already up instead of trying to figure out parent
mtd device (which didn't work well).

Reported-by: DENG Qingfang <dqfext@gmail.com>
Reported-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
Fixes: 2809d0000744 ("kernel: support FIT partition parser on mtdblock devices")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/generic/hack-5.10/402-mtd-blktrans-call-add-disks-after-mtd-device.patch