Commit fdb2f37a authored by Yu Ning's avatar Yu Ning Committed by Sebastian Reichel

goldfish: Enable ACPI-based enumeration for goldfish battery

Add the ACPI bindings to the goldfish battery driver.
Signed-off-by: default avatarYu Ning <yu.ning@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 avatarSebastian Reichel <sre@kernel.org>
parent 65d687a7
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/acpi.h>
struct goldfish_battery_data { struct goldfish_battery_data {
void __iomem *reg_base; void __iomem *reg_base;
...@@ -233,12 +234,19 @@ static const struct of_device_id goldfish_battery_of_match[] = { ...@@ -233,12 +234,19 @@ static const struct of_device_id goldfish_battery_of_match[] = {
}; };
MODULE_DEVICE_TABLE(of, goldfish_battery_of_match); MODULE_DEVICE_TABLE(of, goldfish_battery_of_match);
static const struct acpi_device_id goldfish_battery_acpi_match[] = {
{ "GFSH0001", 0 },
{ },
};
MODULE_DEVICE_TABLE(acpi, goldfish_battery_acpi_match);
static struct platform_driver goldfish_battery_device = { static struct platform_driver goldfish_battery_device = {
.probe = goldfish_battery_probe, .probe = goldfish_battery_probe,
.remove = goldfish_battery_remove, .remove = goldfish_battery_remove,
.driver = { .driver = {
.name = "goldfish-battery", .name = "goldfish-battery",
.of_match_table = goldfish_battery_of_match, .of_match_table = goldfish_battery_of_match,
.acpi_match_table = ACPI_PTR(goldfish_battery_acpi_match),
} }
}; };
module_platform_driver(goldfish_battery_device); module_platform_driver(goldfish_battery_device);
......
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