summaryrefslogtreecommitdiff
path: root/include/libfdt.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-10-02 17:59:30 -0600
committerSimon Glass <sjg@chromium.org>2016-10-13 14:12:40 -0600
commit42b7600d62ae288a8c12431d232b89b26ec61721 (patch)
treea2253e2280d8f2df7a60099cc117d7caf2d2c1bf /include/libfdt.h
parentdf87e6b1b815ae3484ea2aa7c53b90af382eae1b (diff)
libfdt: Drop inlining of fdt_path_offset()
The fdt_path_offset() function is not inlined in upstream libfdt. Adjust U-Boot's version to match. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/libfdt.h')
-rw-r--r--include/libfdt.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/libfdt.h b/include/libfdt.h
index 398748c5c4..8746790a25 100644
--- a/include/libfdt.h
+++ b/include/libfdt.h
@@ -410,10 +410,7 @@ int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen);
* -FDT_ERR_BADSTRUCTURE,
* -FDT_ERR_TRUNCATED, standard meanings.
*/
-static inline int fdt_path_offset(const void *fdt, const char *path)
-{
- return fdt_path_offset_namelen(fdt, path, strlen(path));
-}
+int fdt_path_offset(const void *fdt, const char *path);
/**
* fdt_get_name - retrieve the name of a given node