Skip to content

Commit 7b166af

Browse files
committed
[update] dtbocfg to v0.0.3, for linux kernel 4.8.17
1 parent baee53c commit 7b166af

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

drivers/dtbocfg/dtbocfg.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
@@ -37,6 +37,7 @@
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;

drivers/dtbocfg/dtbocfg.ko

-60 KB
Binary file not shown.

0 commit comments

Comments
 (0)