Commit d62f324b authored by Jason Hu's avatar Jason Hu Committed by Greg Kroah-Hartman

goldfish: Enable ACPI-based enumeration for android pipe

Add ACPI binding to the android pipe driver
Signed-off-by: default avatarJason Hu <jia-cheng.hu@intel.com>
Signed-off-by: default avatarJin Qian <jinqian@android.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4f42071c
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/goldfish.h> #include <linux/goldfish.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/acpi.h>
/* /*
* IMPORTANT: The following constants must match the ones used and defined * IMPORTANT: The following constants must match the ones used and defined
...@@ -650,6 +651,12 @@ static int goldfish_pipe_remove(struct platform_device *pdev) ...@@ -650,6 +651,12 @@ static int goldfish_pipe_remove(struct platform_device *pdev)
return 0; return 0;
} }
static const struct acpi_device_id goldfish_pipe_acpi_match[] = {
{ "GFSH0003", 0 },
{ },
};
MODULE_DEVICE_TABLE(acpi, goldfish_pipe_acpi_match);
static const struct of_device_id goldfish_pipe_of_match[] = { static const struct of_device_id goldfish_pipe_of_match[] = {
{ .compatible = "google,android-pipe", }, { .compatible = "google,android-pipe", },
{}, {},
...@@ -663,6 +670,7 @@ static struct platform_driver goldfish_pipe = { ...@@ -663,6 +670,7 @@ static struct platform_driver goldfish_pipe = {
.name = "goldfish_pipe", .name = "goldfish_pipe",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.of_match_table = goldfish_pipe_of_match, .of_match_table = goldfish_pipe_of_match,
.acpi_match_table = ACPI_PTR(goldfish_pipe_acpi_match),
} }
}; };
......
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