Commit 54f57264 authored by Sam Ravnborg's avatar Sam Ravnborg

video: fbdev: goldfishfb: Fix defined but not used warning

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: default avatarSam Ravnborg <sam@ravnborg.org>
Acked-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201206190247.1861316-10-sam@ravnborg.org
parent 5825e11c
...@@ -305,11 +305,13 @@ static const struct of_device_id goldfish_fb_of_match[] = { ...@@ -305,11 +305,13 @@ static const struct of_device_id goldfish_fb_of_match[] = {
}; };
MODULE_DEVICE_TABLE(of, 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[] = { static const struct acpi_device_id goldfish_fb_acpi_match[] = {
{ "GFSH0004", 0 }, { "GFSH0004", 0 },
{ }, { },
}; };
MODULE_DEVICE_TABLE(acpi, goldfish_fb_acpi_match); MODULE_DEVICE_TABLE(acpi, goldfish_fb_acpi_match);
#endif
static struct platform_driver goldfish_fb_driver = { static struct platform_driver goldfish_fb_driver = {
.probe = goldfish_fb_probe, .probe = goldfish_fb_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment