Explorar o código

Staging: vme_tsi148: use DEFINE_PCI_DEVICE_TABLE

Convert 'const struct pci_device_id xxx[]' to 'DEFINE_PCI_DEVICE_TABLE(xxx)'.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Namhyung Kim %!s(int64=14) %!d(string=hai) anos
pai
achega
270b64bb4c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/staging/vme/bridges/vme_tsi148.c

+ 1 - 1
drivers/staging/vme/bridges/vme_tsi148.c

@@ -46,7 +46,7 @@ static int geoid;
 
 
 static char driver_name[] = "vme_tsi148";
 static char driver_name[] = "vme_tsi148";
 
 
-static const struct pci_device_id tsi148_ids[] = {
+static DEFINE_PCI_DEVICE_TABLE(tsi148_ids) = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_TUNDRA, PCI_DEVICE_ID_TUNDRA_TSI148) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_TUNDRA, PCI_DEVICE_ID_TUNDRA_TSI148) },
 	{ },
 	{ },
 };
 };