|
@@ -33,7 +33,6 @@ static struct radeon_atpx_priv {
|
|
|
bool atpx_detected;
|
|
|
/* handle for device - and atpx */
|
|
|
acpi_handle dhandle;
|
|
|
- acpi_handle other_handle;
|
|
|
struct radeon_atpx atpx;
|
|
|
} radeon_atpx_priv;
|
|
|
|
|
@@ -453,10 +452,9 @@ static bool radeon_atpx_pci_probe_handle(struct pci_dev *pdev)
|
|
|
return false;
|
|
|
|
|
|
status = acpi_get_handle(dhandle, "ATPX", &atpx_handle);
|
|
|
- if (ACPI_FAILURE(status)) {
|
|
|
- radeon_atpx_priv.other_handle = dhandle;
|
|
|
+ if (ACPI_FAILURE(status))
|
|
|
return false;
|
|
|
- }
|
|
|
+
|
|
|
radeon_atpx_priv.dhandle = dhandle;
|
|
|
radeon_atpx_priv.atpx.handle = atpx_handle;
|
|
|
return true;
|
|
@@ -540,16 +538,6 @@ static bool radeon_atpx_detect(void)
|
|
|
printk(KERN_INFO "VGA switcheroo: detected switching method %s handle\n",
|
|
|
acpi_method_name);
|
|
|
radeon_atpx_priv.atpx_detected = true;
|
|
|
- /*
|
|
|
- * On some systems hotplug events are generated for the device
|
|
|
- * being switched off when ATPX is executed. They cause ACPI
|
|
|
- * hotplug to trigger and attempt to remove the device from
|
|
|
- * the system, which causes it to break down. Prevent that from
|
|
|
- * happening by setting the no_hotplug flag for the involved
|
|
|
- * ACPI device objects.
|
|
|
- */
|
|
|
- acpi_bus_no_hotplug(radeon_atpx_priv.dhandle);
|
|
|
- acpi_bus_no_hotplug(radeon_atpx_priv.other_handle);
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|