Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Shile Zhang and committed by
Greg Kroah-Hartman
65527a51 20c40794

+1
+1
drivers/misc/pvpanic.c
··· 140 140 { .compatible = "qemu,pvpanic-mmio", }, 141 141 {} 142 142 }; 143 + MODULE_DEVICE_TABLE(of, pvpanic_mmio_match); 143 144 144 145 static const struct acpi_device_id pvpanic_device_ids[] = { 145 146 { "QEMU0001", 0 },