Skip to content

Commit abb9eb7

Browse files
namhyunggregkh
authored andcommitted
Staging: phison: 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>
1 parent 270b64b commit abb9eb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/staging/phison/phison.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static int phison_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
6969
return ret;
7070
}
7171

72-
static const struct pci_device_id phison_pci_tbl[] = {
72+
static DEFINE_PCI_DEVICE_TABLE(phison_pci_tbl) = {
7373
{ PCI_VENDOR_ID_PHISON, PCI_DEVICE_ID_PS5000, PCI_ANY_ID, PCI_ANY_ID,
7474
PCI_CLASS_STORAGE_IDE << 8, 0xffff00, 0 },
7575
{ 0, },

0 commit comments

Comments
 (0)