From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 12/16] of: implement stub for of_cdev_find
Date: Tue, 1 Apr 2025 12:48:02 +0200 [thread overview]
Message-ID: <20250401104806.3959859-13-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250401104806.3959859-1-a.fatoum@pengutronix.de>
For systems without CONFIG_OFTREE, provide a stub definition of
of_cdev_find, so code can compile without error.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
include/of.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/of.h b/include/of.h
index 985f0195b2aa..5829d9d1ace0 100644
--- a/include/of.h
+++ b/include/of.h
@@ -1007,6 +1007,11 @@ static inline struct device *of_device_enable_and_register_by_alias(
return NULL;
}
+static inline struct cdev *of_cdev_find(struct device_node *node)
+{
+ return ERR_PTR(-ENOSYS);
+}
+
static inline int of_register_fixup(int (*fixup)(struct device_node *, void *),
void *context)
{
--
2.39.5
next prev parent reply other threads:[~2025-04-01 11:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-01 10:47 [PATCH 00/16] boot: implement generic bootsource target Ahmad Fatoum
2025-04-01 10:47 ` [PATCH 01/16] boot: change bootentry_register_provider to take struct argument Ahmad Fatoum
2025-04-01 10:47 ` [PATCH 02/16] boot: move nfs:// parsing out of bootloader spec code Ahmad Fatoum
2025-04-01 10:47 ` [PATCH 03/16] blspec: remove unused blspec_scan_devices Ahmad Fatoum
2025-04-01 10:47 ` [PATCH 04/16] blspec: don't export blspec functions Ahmad Fatoum
2025-04-01 10:47 ` [PATCH 05/16] blspec: factor out generic parts into bootscan helper Ahmad Fatoum
2025-04-01 10:47 ` [PATCH 06/16] common: bootscan: add scan_disk callback Ahmad Fatoum
2025-04-01 10:47 ` [PATCH 07/16] blspec: support boot /dev/virtioblkX Ahmad Fatoum
2025-04-01 10:47 ` [PATCH 08/16] bootm: associate bootm overrides with struct bootentry Ahmad Fatoum
2025-04-01 10:47 ` [PATCH 09/16] boot: split off bootarg API into new bootargs.h header Ahmad Fatoum
2025-04-01 10:48 ` [PATCH 10/16] block: add get_rootarg block op into block_device_ops Ahmad Fatoum
2025-04-01 10:48 ` [PATCH 11/16] block: fixup rootwait argument when needed by default Ahmad Fatoum
2025-04-01 10:48 ` Ahmad Fatoum [this message]
2025-04-01 10:48 ` [PATCH 13/16] bootsource: implement bootsource_of_cdev_find Ahmad Fatoum
2025-04-01 10:48 ` [PATCH 14/16] common: bootdef: add new boot entry provider Ahmad Fatoum
2025-04-01 10:48 ` [PATCH 15/16] kconfig: implement IF_ENABLED helper Ahmad Fatoum
2025-04-01 10:48 ` [PATCH 16/16] boot: make bootsource the default boot target if enabled Ahmad Fatoum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250401104806.3959859-13-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox