@@ -677,11 +677,6 @@
"Driver data is NULL, dropping EJECT\n");
return;
}
- /*The alternative way of modify is add the following code:
- kobject_uevent(&device->dev.kobj, KOBJ_OFFLINE);
- */
- /*async execute the acip_bus_hot_remove_device*/
- acpi_os_hotplug_execute(acpi_bus_hot_remove_device, handle);
break;
default:
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
@@ -83,7 +83,7 @@
}
static DEVICE_ATTR(modalias, 0444, acpi_device_modalias_show, NULL);
- void acpi_bus_hot_remove_device(void *context)
+static void acpi_bus_hot_remove_device(void *context)
{
struct acpi_device *device;
acpi_handle handle = context;
@@ -342,7 +342,7 @@
const struct acpi_device_id *ids);
int acpi_create_dir(struct acpi_device *);
void acpi_remove_dir(struct acpi_device *);
-void acpi_bus_hot_remove_device(void *context);
+
/*
* Bind physical devices with ACPI devices