From a964b6876bf84bb0d050f6c225214e0e49d31aa6 Mon Sep 17 00:00:00 2001 From: Troy Kisky Date: Mon, 26 Sep 2016 17:51:09 -0700 Subject: logo: add fb_logos_freed Signed-off-by: Troy Kisky (cherry picked from commit 71b7811f043799d8a1e6c978c3ebe57d2ab66a34) Related to #47541 Signed-off-by: Max Krummenacher --- drivers/video/logo/logo.c | 5 +++++ include/linux/linux_logo.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/video/logo/logo.c b/drivers/video/logo/logo.c index 042728879471..950af0598240 100644 --- a/drivers/video/logo/logo.c +++ b/drivers/video/logo/logo.c @@ -36,6 +36,11 @@ static int __init fb_logo_late_init(void) late_initcall(fb_logo_late_init); +bool fb_logos_freed(void) +{ + return logos_freed; +} + /* logo's are marked __initdata. Use __ref to tell * modpost that it is intended that this function uses data * marked __initdata. diff --git a/include/linux/linux_logo.h b/include/linux/linux_logo.h index 2be299513819..6e089e9e98b3 100644 --- a/include/linux/linux_logo.h +++ b/include/linux/linux_logo.h @@ -49,6 +49,7 @@ extern const struct linux_logo logo_m32r_clut224; extern const struct linux_logo logo_spe_clut224; extern const struct linux_logo logo_custom_clut224; +extern bool fb_logos_freed(void); extern const struct linux_logo *fb_find_logo(int depth); #ifdef CONFIG_FB_LOGO_EXTRA extern void fb_append_extra_logo(const struct linux_logo *logo, -- cgit v1.2.3