This function was never used in upstream board code since it was introduced, so drop it.
This avoids it interfering with the addition of bootsource_of_node_set in the follow-up commit. Signed-off-by: Ahmad Fatoum <a.fat...@pengutronix.de> --- common/bootsource.c | 14 -------------- include/bootsource.h | 1 - 2 files changed, 15 deletions(-) diff --git a/common/bootsource.c b/common/bootsource.c index e78237ff36b8..14e6565e3789 100644 --- a/common/bootsource.c +++ b/common/bootsource.c @@ -32,7 +32,6 @@ static const char *bootsource_str[BOOTSOURCE_MAX] = { static enum bootsource bootsource = BOOTSOURCE_UNKNOWN; static int bootsource_instance = BOOTSOURCE_INSTANCE_UNKNOWN; -const char *bootsource_alias_name = NULL; const char *bootsource_to_string(enum bootsource src) { @@ -84,14 +83,6 @@ const char *bootsource_get_alias_name(void) const char *stem; int ret; - /* - * If alias name was overridden via - * bootsource_set_alias_name() return that value without - * asking any questions. - */ - if (bootsource_alias_name) - return bootsource_alias_name; - stem = bootsource_get_alias_stem(bootsource); if (!stem) return NULL; @@ -140,11 +131,6 @@ struct cdev *bootsource_of_cdev_find(void) return cdev; } -void bootsource_set_alias_name(const char *name) -{ - bootsource_alias_name = name; -} - void bootsource_set_raw(enum bootsource src, int instance) { if (src >= BOOTSOURCE_MAX) diff --git a/include/bootsource.h b/include/bootsource.h index c9c58daf096c..1b3df84f4ddb 100644 --- a/include/bootsource.h +++ b/include/bootsource.h @@ -28,7 +28,6 @@ enum bootsource { enum bootsource bootsource_get(void); enum bootsource bootsource_get_device(void); int bootsource_get_instance(void); -void bootsource_set_alias_name(const char *name); const char *bootsource_get_alias_name(void); const char *bootsource_to_string(enum bootsource src); const char *bootsource_get_alias_stem(enum bootsource bs); -- 2.39.5