File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,7 @@ static struct acpi_scan_handler acpi_pnp_handler = {
367
367
*/
368
368
static int is_cmos_rtc_device (struct acpi_device * adev )
369
369
{
370
- struct acpi_device_id ids [] = {
370
+ static const struct acpi_device_id ids [] = {
371
371
{ "PNP0B00" },
372
372
{ "PNP0B01" },
373
373
{ "PNP0B02" },
Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ void pnp_device_detach(struct pnp_dev *pnp_dev)
74
74
if (pnp_dev -> status == PNP_ATTACHED )
75
75
pnp_dev -> status = PNP_READY ;
76
76
mutex_unlock (& pnp_lock );
77
- pnp_disable_dev (pnp_dev );
78
77
}
79
78
80
79
static int pnp_device_probe (struct device * dev )
@@ -131,6 +130,11 @@ static int pnp_device_remove(struct device *dev)
131
130
drv -> remove (pnp_dev );
132
131
pnp_dev -> driver = NULL ;
133
132
}
133
+
134
+ if (pnp_dev -> active &&
135
+ (!drv || !(drv -> flags & PNP_DRIVER_RES_DO_NOT_CHANGE )))
136
+ pnp_disable_dev (pnp_dev );
137
+
134
138
pnp_device_detach (pnp_dev );
135
139
return 0 ;
136
140
}
Original file line number Diff line number Diff line change @@ -343,6 +343,7 @@ static void quirk_amd_mmconfig_area(struct pnp_dev *dev)
343
343
static const unsigned int mch_quirk_devices [] = {
344
344
0x0154 , /* Ivy Bridge */
345
345
0x0c00 , /* Haswell */
346
+ 0x1604 , /* Broadwell */
346
347
};
347
348
348
349
static struct pci_dev * get_intel_host (void )
You can’t perform that action at this time.
0 commit comments