diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-01-16 14:35:00 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-01-16 15:24:03 +0100 |
commit | 2f8590c438e6870a366ab1a1672a0bbe789ea4ed (patch) | |
tree | 5a36215aebc4839d77d32b6d624ff02c0b77a148 /include/of.h | |
parent | e43aeaf121abcb639d8d95d7a37a5490e18b905a (diff) | |
download | barebox-2f8590c438e6870a366ab1a1672a0bbe789ea4ed.tar.gz |
of: implement of_device_enable_by_alias
For symmetry with of_device_disable, which already has direct, path and
by alias variants, implement the missing of_device_enable_by alias as
well.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20230116133500.1998550-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/of.h')
-rw-r--r-- | include/of.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index c69fa96054..50d590b972 100644 --- a/include/of.h +++ b/include/of.h @@ -1131,6 +1131,7 @@ extern const struct of_device_id of_default_bus_match_table[]; int of_device_enable(struct device_node *node); int of_device_enable_path(const char *path); +int of_device_enable_by_alias(const char *alias); int of_device_disable(struct device_node *node); int of_device_disable_path(const char *path); int of_device_disable_by_alias(const char *alias); |