generic: 6.1: refresh pending patches
[openwrt/staging/ansuel.git] / target / linux / generic / pending-6.1 / 490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch
index b120548d2e77f94da021c7566061a63533587a81..c51ec07f2c596b95e55b986c195b23344a8d16be 100644 (file)
@@ -66,7 +66,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
 +
 +      mutex_lock(&ubi_devices_mutex);
 +      pr_notice("UBI: auto-attach mtd%d\n", mtd->index);
-+      err = ubi_attach_mtd_dev(mtd, UBI_DEV_NUM_AUTO, 0, 0);
++      err = ubi_attach_mtd_dev(mtd, UBI_DEV_NUM_AUTO, 0, 0, false);
 +      mutex_unlock(&ubi_devices_mutex);
 +      if (err < 0) {
 +              pr_err("UBI error: cannot attach mtd%d\n", mtd->index);