summaryrefslogtreecommitdiff
path: root/disk
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2022-08-08 16:45:17 +0200
committerTom Rini <trini@konsulko.com>2022-08-26 15:00:33 -0400
commit2f03a639f36d305800b8befe066f0d3a1616aed0 (patch)
tree29cb071e58c3a1ebf0fdf436fb1f875582cd4f3b /disk
parente9ac3a939d4f11e9cdcdcb2bad090f4cb1929a85 (diff)
downloadu-boot-2f03a639f36d305800b8befe066f0d3a1616aed0.tar.gz
disk: part: remove dependency to ubifs for spl
The spl doesn't support ubifs and thereby doesn't provide the ubifs_is_mounted function. Remove the dependency to ubifs for the spl. Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Diffstat (limited to 'disk')
-rw-r--r--disk/part.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk/part.c b/disk/part.c
index 79955c7fb0..de1b917e84 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -479,7 +479,7 @@ int blk_get_device_part_str(const char *ifname, const char *dev_part_str,
}
#endif
-#ifdef CONFIG_CMD_UBIFS
+#if IS_ENABLED(CONFIG_CMD_UBIFS) && !IS_ENABLED(CONFIG_SPL_BUILD)
/*
* Special-case ubi, ubi goes through a mtd, rather than through
* a regular block device.