diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index 4f6f339d8fb8..31a1e5515d98 100644 --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c @@ -1995,6 +1995,7 @@ static void protection_queue_destroy(struct ubi_device *ubi) void ubi_wl_close(struct ubi_device *ubi) { dbg_wl("close the WL sub-system"); + unregister_reboot_notifier(&ubi->wl_reboot_notifier); ubi_fastmap_close(ubi); shutdown_work(ubi); protection_queue_destroy(ubi);