Skip to content

Commit

Permalink
platform-drivers-x86: intel_rar_register: convert to DEFINE_PCI_DEVIC…
Browse files Browse the repository at this point in the history
…E_TABLE

And also remove unused variable 'my_id_table'.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Matthew Garrett <[email protected]>
  • Loading branch information
AxelLin authored and Matthew Garrett committed Aug 5, 2011
1 parent c8bb2eb commit b73210a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/platform/x86/intel_rar_register.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,15 +637,13 @@ static int rar_probe(struct pci_dev *dev, const struct pci_device_id *id)
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",
Expand Down

0 comments on commit b73210a

Please sign in to comment.