From: Graeme Gregory Date: Fri, 26 Jul 2013 16:55:02 +0000 (+0100) Subject: virtio-mmio: add ACPI probing X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b1c078f022f5fc911db88b833c10c9e165d79ec0;p=people%2Fjulieng%2Flinux-arm.git virtio-mmio: add ACPI probing Added the match table and pointers for ACPI probing to the driver. Signed-off-by: Graeme Gregory Signed-off-by: Vadim Lomovtsev --- diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c index 10189b5b627f..9f9f4c3ed3c2 100644 --- a/drivers/virtio/virtio_mmio.c +++ b/drivers/virtio/virtio_mmio.c @@ -70,8 +70,7 @@ #include #include #include - - +#include /* The alignment to use between consumer and producer parts of vring. * Currently hardcoded to the page size. */ @@ -732,12 +731,21 @@ 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, .driver = { .name = "virtio-mmio", .of_match_table = virtio_mmio_match, + .acpi_match_table = ACPI_PTR(virtio_mmio_acpi_match), }, };