mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-08-18 02:22:47 -07:00
platform-drivers-x86: intel_rar_register: convert to DEFINE_PCI_DEVICE_TABLE
And also remove unused variable 'my_id_table'. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>
This commit is contained in:
1 parent
c8bb2ebd62
commit
b73210aec4
1 file changed
+1
-3
@@ -637,15 +637,13 @@ end_function:
|
||||
return error;
|
||||
}
|
||||
|
||||
const struct pci_device_id rar_pci_id_tbl[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(rar_pci_id_tbl) = {
|
||||
{ PCI_VDEVICE(INTEL, 0x4110) },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
MODULE_DEVICE_TABLE(pci, rar_pci_id_tbl);
|
||||
|
||||
const struct pci_device_id *my_id_table = rar_pci_id_tbl;
|
||||
|
||||
/* field for registering driver to PCI device */
|
||||
static struct pci_driver rar_pci_driver = {
|
||||
.name = "rar_register_driver",
|
||||
|
||||
Reference in new issue
Block a user