summaryrefslogtreecommitdiffstats
path: root/discover/platform.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-09-30 09:23:22 +1000
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2014-09-30 11:10:48 +1000
commit4d5a57a73cbfa29ad2c8672f157294f733726f90 (patch)
tree471a0c52ebcbff86c1d3b3142db67fd67d6f648f /discover/platform.c
parentd88c7a99467e50bd9d2b57f0f7346904c45c6a11 (diff)
downloadtalos-petitboot-4d5a57a73cbfa29ad2c8672f157294f733726f90.tar.gz
talos-petitboot-4d5a57a73cbfa29ad2c8672f157294f733726f90.zip
discover/platform: Add finalise_config_hook
Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Diffstat (limited to 'discover/platform.c')
-rw-r--r--discover/platform.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/discover/platform.c b/discover/platform.c
index 4d5009c..0a221e2 100644
--- a/discover/platform.c
+++ b/discover/platform.c
@@ -173,6 +173,12 @@ const struct platform *platform_get(void)
return platform;
}
+void platform_finalise_config(void)
+{
+ if (platform && platform->finalise_config)
+ platform->finalise_config(platform);
+}
+
int platform_get_sysinfo(struct system_info *info)
{
if (platform && platform->get_sysinfo)
OpenPOWER on IntegriCloud