summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2016-09-26 17:51:09 -0700
committerPhilippe Schenker <philippe.schenker@toradex.com>2019-05-09 11:13:57 +0200
commita964b6876bf84bb0d050f6c225214e0e49d31aa6 (patch)
tree835c62a0545e64d0cf766de02775d8881d5c8bec
parent81d55760e89a6cdf9aae3bc6ee70db4579017b00 (diff)
logo: add fb_logos_freed
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> (cherry picked from commit 71b7811f043799d8a1e6c978c3ebe57d2ab66a34) Related to #47541 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--drivers/video/logo/logo.c5
-rw-r--r--include/linux/linux_logo.h1
2 files changed, 6 insertions, 0 deletions
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,