summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/goldfishfb.c
diff options
context:
space:
mode:
authorYu Ning <yu.ning@intel.com>2018-07-03 17:43:09 +0200
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2018-07-03 17:43:09 +0200
commit1ef4e117c85f7d237f30f6f18d0668d334b30695 (patch)
tree3234e4a30cbdb676257c5b332d67ce9952f01551 /drivers/video/fbdev/goldfishfb.c
parent38e8f5c80524d55d5c9814423a1a176b81f856da (diff)
video: fbdev: Enable ACPI-based enumeration for goldfishfb
Add an ACPI id to make goldfish framebuffer to support ACPI enumeration. Signed-off-by: Yu Ning <yu.ning@intel.com> Signed-off-by: Roman Kiryanov <rkir@google.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/goldfishfb.c')
-rw-r--r--drivers/video/fbdev/goldfishfb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfishfb.c
index de29c4ff77e5..01732858b60d 100644
--- a/drivers/video/fbdev/goldfishfb.c
+++ b/drivers/video/fbdev/goldfishfb.c
@@ -26,6 +26,7 @@
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/platform_device.h>
+#include <linux/acpi.h>
enum {
FB_GET_WIDTH = 0x00,
@@ -312,12 +313,19 @@ static const struct of_device_id goldfish_fb_of_match[] = {
};
MODULE_DEVICE_TABLE(of, goldfish_fb_of_match);
+static const struct acpi_device_id goldfish_fb_acpi_match[] = {
+ { "GFSH0004", 0 },
+ { },
+};
+MODULE_DEVICE_TABLE(acpi, goldfish_fb_acpi_match);
+
static struct platform_driver goldfish_fb_driver = {
.probe = goldfish_fb_probe,
.remove = goldfish_fb_remove,
.driver = {
.name = "goldfish_fb",
.of_match_table = goldfish_fb_of_match,
+ .acpi_match_table = ACPI_PTR(goldfish_fb_acpi_match),
}
};