projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5825e11
)
video: fbdev: goldfishfb: Fix defined but not used warning
author
Sam Ravnborg
<sam@ravnborg.org>
Sun, 6 Dec 2020 19:02:43 +0000
(20:02 +0100)
committer
Sam Ravnborg
<sam@ravnborg.org>
Tue, 8 Dec 2020 17:34:50 +0000
(18:34 +0100)
The goldfish_fb_acpi_match table is only used with ACPI enabled.
Ifdef it out unless it is needed.
This is a similar fix to what other acpi drivers do.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20201206190247.1861316-10-sam@ravnborg.org
drivers/video/fbdev/goldfishfb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/goldfishfb.c
b/drivers/video/fbdev/goldfishfb.c
index 9c83ec3f8e1f82f0d8bebc31ddfe9045450c072b..2b885cd046fe7918ab3956d65457a4322bfb76b2 100644
(file)
--- a/
drivers/video/fbdev/goldfishfb.c
+++ b/
drivers/video/fbdev/goldfishfb.c
@@
-305,11
+305,13
@@
static const struct of_device_id goldfish_fb_of_match[] = {
};
MODULE_DEVICE_TABLE(of, goldfish_fb_of_match);
+#ifdef CONFIG_ACPI
static const struct acpi_device_id goldfish_fb_acpi_match[] = {
{ "GFSH0004", 0 },
{ },
};
MODULE_DEVICE_TABLE(acpi, goldfish_fb_acpi_match);
+#endif
static struct platform_driver goldfish_fb_driver = {
.probe = goldfish_fb_probe,