diff options
author | Graeme Gregory <graeme.gregory@linaro.org> | 2013-07-26 17:55:02 +0100 |
---|---|---|
committer | Graeme Gregory <graeme.gregory@linaro.org> | 2014-01-23 16:10:13 +0000 |
commit | a5060f85f12af9f9fb83ea7f9a053fa1cb0b88f3 (patch) | |
tree | 85754667647eb2678d06cec72419d1270858458c /drivers | |
parent | 8f0b3a09cd7d3e3e5ceb5a699b0efecc3353a642 (diff) |
virtio-mmio: add ACPI probing
Added the match table and pointers for ACPI probing to the driver.
Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/virtio/virtio_mmio.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c index c600ccfd6922..10c4775368b7 100644 --- a/drivers/virtio/virtio_mmio.c +++ b/drivers/virtio/virtio_mmio.c @@ -100,8 +100,7 @@ #include <linux/virtio_config.h> #include <linux/virtio_mmio.h> #include <linux/virtio_ring.h> - - +#include <linux/acpi.h> /* The alignment to use between consumer and producer parts of vring. * Currently hardcoded to the page size. */ @@ -637,6 +636,14 @@ static struct of_device_id virtio_mmio_match[] = { }; MODULE_DEVICE_TABLE(of, virtio_mmio_match); +#ifdef CONFIG_ACPI +static const struct acpi_device_id virtio_mmio_acpi_match[] = { + { "LNRO0005", }, + { } +}; +MODULE_DEVICE_TABLE(acpi, virtio_mmio_acpi_match); +#endif + static struct platform_driver virtio_mmio_driver = { .probe = virtio_mmio_probe, .remove = virtio_mmio_remove, @@ -644,6 +651,7 @@ static struct platform_driver virtio_mmio_driver = { .name = "virtio-mmio", .owner = THIS_MODULE, .of_match_table = virtio_mmio_match, + .acpi_match_table = ACPI_PTR(virtio_mmio_acpi_match), }, }; |