diff options
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 4de3cc42fc50..206a6b346a8d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -3570,15 +3570,6 @@ sub process { | |||
| 3570 | } | 3570 | } |
| 3571 | } | 3571 | } |
| 3572 | 3572 | ||
| 3573 | # check for uses of DEFINE_PCI_DEVICE_TABLE | ||
| 3574 | if ($line =~ /\bDEFINE_PCI_DEVICE_TABLE\s*\(\s*(\w+)\s*\)\s*=/) { | ||
| 3575 | if (WARN("DEFINE_PCI_DEVICE_TABLE", | ||
| 3576 | "Prefer struct pci_device_id over deprecated DEFINE_PCI_DEVICE_TABLE\n" . $herecurr) && | ||
| 3577 | $fix) { | ||
| 3578 | $fixed[$fixlinenr] =~ s/\b(?:static\s+|)DEFINE_PCI_DEVICE_TABLE\s*\(\s*(\w+)\s*\)\s*=\s*/static const struct pci_device_id $1\[\] = /; | ||
| 3579 | } | ||
| 3580 | } | ||
| 3581 | |||
| 3582 | # check for new typedefs, only function parameters and sparse annotations | 3573 | # check for new typedefs, only function parameters and sparse annotations |
| 3583 | # make sense. | 3574 | # make sense. |
| 3584 | if ($line =~ /\btypedef\s/ && | 3575 | if ($line =~ /\btypedef\s/ && |
