File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11/*********************************************************************************
22 *
3- * Copyright (C) 2016 Ichiro Kawazome
3+ * Copyright (C) 2016-2017 Ichiro Kawazome
44 * All rights reserved.
55 *
66 * Redistribution and use in source and binary forms, with or without
3737#include <linux/stat.h>
3838#include <linux/limits.h>
3939#include <linux/file.h>
40+ #include <linux/version.h>
4041
4142/**
4243 * Device Tree Overlay Item Structure
@@ -58,7 +59,11 @@ static int dtbocfg_overlay_item_create(struct dtbocfg_overlay_item *overlay)
5859{
5960 int ret_val ;
6061
62+ #if (LINUX_VERSION_CODE >= 0x040700 )
63+ of_fdt_unflatten_tree (overlay -> dtbo , NULL , & overlay -> node );
64+ #else
6165 of_fdt_unflatten_tree (overlay -> dtbo , & overlay -> node );
66+ #endif
6267 if (overlay -> node == NULL ) {
6368 pr_err ("%s: failed to unflatten tree\n" , __func__ );
6469 ret_val = - EINVAL ;
You can’t perform that action at this time.
0 commit comments