summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorShile Zhang <shile.zhang@linux.alibaba.com>2021-02-18 20:31:16 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-17 17:06:31 +0100
commit7ae2482c7042e2b4057f0b54f1c4cbac553daa75 (patch)
tree98c8be8ccd528cafc27a83b11e526e3d61aa5efc /drivers/misc
parent70c26fc71b7e5b77100e48f8a8225679e8254b6f (diff)
misc/pvpanic: Export module FDT device table
commit 65527a51c66f4edfa28602643d7dd4fa366eb826 upstream. Export the module FDT device table to ensure the FDT compatible strings are listed in the module alias. This help the pvpanic driver can be loaded on boot automatically not only the ACPI device, but also the FDT device. Fixes: 46f934c9a12fc ("misc/pvpanic: add support to get pvpanic device info FDT") Signed-off-by: Shile Zhang <shile.zhang@linux.alibaba.com> Link: https://lore.kernel.org/r/20210218123116.207751-1-shile.zhang@linux.alibaba.com Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/pvpanic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c
index e16a5e51006e..d9140e75602d 100644
--- a/drivers/misc/pvpanic.c
+++ b/drivers/misc/pvpanic.c
@@ -166,6 +166,7 @@ static const struct of_device_id pvpanic_mmio_match[] = {
{ .compatible = "qemu,pvpanic-mmio", },
{}
};
+MODULE_DEVICE_TABLE(of, pvpanic_mmio_match);
static struct platform_driver pvpanic_mmio_driver = {
.driver = {