summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Dolcini <francesco.dolcini@toradex.com>2023-02-22 09:08:55 +0100
committerFrancesco Dolcini <francesco.dolcini@toradex.com>2023-02-22 09:08:55 +0100
commit9ae53d1bb4b192041770877c253da255b2b463a2 (patch)
tree2e95c77d15ebcea95d3bedd323de2d13fc7352a2
parentb187aebc66f6f8290fec5add75a8f9671c9c47d5 (diff)
misc: uclass: Fix compile error
Add #include <dm/ofnode.h> to fix the following compiler error +In file included from drivers/pinctrl/nxp/pinctrl-scu.c:11: +include/misc.h:87:25: error: unknown type name 'ofnode' + 87 | int misc_init_by_ofnode(ofnode node); + | ^~~~~~ Upstream-Status: Inappropriate [other] The fixed commit is present only on the downstream TI branch, therefore there is nothing to send to upstream denx repository. We might think about sending this patch to TI in the future. Fixes: 9d9fd0a3b18f ("misc: uclass: Introduce misc_init_by_ofnode") Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
-rw-r--r--include/misc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/misc.h b/include/misc.h
index 79263ed480..d523b43c33 100644
--- a/include/misc.h
+++ b/include/misc.h
@@ -6,6 +6,8 @@
#ifndef _MISC_H_
#define _MISC_H_
+#include <dm/ofnode.h>
+
/**
* misc_read() - Read the device to buffer, optional.
* @dev: the device