summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorShile Zhang <shile.zhang@linux.alibaba.com>2021-02-18 15:31:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-10 19:07:58 +0300
commit65527a51c66f4edfa28602643d7dd4fa366eb826 (patch)
tree2786681a53230ec6b7f0d54a09025b3de03ff1c4 /drivers
parent20c40794eb85ea29852d7bc37c55713802a543d6 (diff)
downloadlinux-65527a51c66f4edfa28602643d7dd4fa366eb826.tar.xz
misc/pvpanic: Export module FDT device table
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')
-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 9f350e05ef68..f1655f5ca016 100644
--- a/drivers/misc/pvpanic.c
+++ b/drivers/misc/pvpanic.c
@@ -140,6 +140,7 @@ static const struct of_device_id pvpanic_mmio_match[] = {
{ .compatible = "qemu,pvpanic-mmio", },
{}
};
+MODULE_DEVICE_TABLE(of, pvpanic_mmio_match);
static const struct acpi_device_id pvpanic_device_ids[] = {
{ "QEMU0001", 0 },