kernel: remove obsolete kernel version switches
[openwrt/openwrt.git] / target / linux / generic / files / block / partitions / fit.c
index 46ccef62eeecc7db0d7ce35c03ba825b63b2bf1e..13c03743f3dd38278cf1a707917abf1d91f71a26 100644 (file)
 
 int parse_fit_partitions(struct parsed_partitions *state, u64 fit_start_sector, u64 sectors, int *slot, int add_remain)
 {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
        struct block_device *bdev = state->disk->part0;
-#else
-       struct block_device *bdev = state->bdev;
-#endif
        struct address_space *mapping = bdev->bd_inode->i_mapping;
        struct page *page;
        void *fit, *init_fit;
@@ -148,7 +144,7 @@ int parse_fit_partitions(struct parsed_partitions *state, u64 fit_start_sector,
 
        np = of_find_node_by_path("/chosen");
        if (np)
-               bootconf = of_get_property(np, "bootconf", NULL);
+               bootconf = of_get_property(np, "u-boot,bootconf", NULL);
        else
                bootconf = NULL;