diff options
Diffstat (limited to 'drivers/platform/x86/intel_mid_powerbtn.c')
-rw-r--r-- | drivers/platform/x86/intel_mid_powerbtn.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/drivers/platform/x86/intel_mid_powerbtn.c b/drivers/platform/x86/intel_mid_powerbtn.c index 5ad44204a9c3..292bace83f1e 100644 --- a/drivers/platform/x86/intel_mid_powerbtn.c +++ b/drivers/platform/x86/intel_mid_powerbtn.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Power button driver for Intel MID platforms. | 3 | * Power button driver for Intel MID platforms. |
3 | * | 4 | * |
@@ -5,18 +6,8 @@ | |||
5 | * | 6 | * |
6 | * Author: Hong Liu <hong.liu@intel.com> | 7 | * Author: Hong Liu <hong.liu@intel.com> |
7 | * Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 8 | * Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation; version 2 of the License. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, but | ||
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | * General Public License for more details. | ||
17 | */ | 9 | */ |
18 | 10 | ||
19 | #include <linux/init.h> | ||
20 | #include <linux/input.h> | 11 | #include <linux/input.h> |
21 | #include <linux/interrupt.h> | 12 | #include <linux/interrupt.h> |
22 | #include <linux/mfd/intel_msic.h> | 13 | #include <linux/mfd/intel_msic.h> |
@@ -121,12 +112,9 @@ static const struct mid_pb_ddata mrfld_ddata = { | |||
121 | .setup = mrfld_setup, | 112 | .setup = mrfld_setup, |
122 | }; | 113 | }; |
123 | 114 | ||
124 | #define ICPU(model, ddata) \ | ||
125 | { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, (kernel_ulong_t)&ddata } | ||
126 | |||
127 | static const struct x86_cpu_id mid_pb_cpu_ids[] = { | 115 | static const struct x86_cpu_id mid_pb_cpu_ids[] = { |
128 | ICPU(INTEL_FAM6_ATOM_SALTWELL_MID, mfld_ddata), | 116 | INTEL_CPU_FAM6(ATOM_SALTWELL_MID, mfld_ddata), |
129 | ICPU(INTEL_FAM6_ATOM_SILVERMONT_MID, mrfld_ddata), | 117 | INTEL_CPU_FAM6(ATOM_SILVERMONT_MID, mrfld_ddata), |
130 | {} | 118 | {} |
131 | }; | 119 | }; |
132 | 120 | ||