Skip to content

Commit 91e503e

Browse files
KAGA-KOKOsuryasaimadhu
authored andcommitted
PCI: intel-mid: Convert to new X86 CPU match macros
The new macro set has a consistent namespace and uses C99 initializers instead of the grufty C89 ones. Get rid the of the local macro wrappers for consistency. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 1e41eb1 commit 91e503e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/pci/pci-mid.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,13 @@ static const struct pci_platform_pm_ops mid_pci_platform_pm = {
5555
.need_resume = mid_pci_need_resume,
5656
};
5757

58-
#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
59-
6058
/*
6159
* This table should be in sync with the one in
6260
* arch/x86/platform/intel-mid/pwr.c.
6361
*/
6462
static const struct x86_cpu_id lpss_cpu_ids[] = {
65-
ICPU(INTEL_FAM6_ATOM_SALTWELL_MID),
66-
ICPU(INTEL_FAM6_ATOM_SILVERMONT_MID),
63+
X86_MATCH_INTEL_FAM6_MODEL(ATOM_SALTWELL_MID, NULL),
64+
X86_MATCH_INTEL_FAM6_MODEL(ATOM_SILVERMONT_MID, NULL),
6765
{}
6866
};
6967

0 commit comments

Comments
 (0)