Staging: quickstart: Cleanup quickstart_acpi_remove
Signed-off-by: Szymon Janc <szymon@janc.net.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2ac16967b8
commit
60955f15d9
|
@ -309,13 +309,15 @@ fail_config:
|
||||||
|
|
||||||
static int quickstart_acpi_remove(struct acpi_device *device, int type)
|
static int quickstart_acpi_remove(struct acpi_device *device, int type)
|
||||||
{
|
{
|
||||||
acpi_status status = 0;
|
acpi_status status;
|
||||||
struct quickstart_acpi *quickstart = NULL;
|
struct quickstart_acpi *quickstart;
|
||||||
|
|
||||||
if (!device || !acpi_driver_data(device))
|
if (!device)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
quickstart = acpi_driver_data(device);
|
quickstart = acpi_driver_data(device);
|
||||||
|
if (!quickstart)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
status = acpi_remove_notify_handler(device->handle, ACPI_ALL_NOTIFY,
|
status = acpi_remove_notify_handler(device->handle, ACPI_ALL_NOTIFY,
|
||||||
quickstart_acpi_notify);
|
quickstart_acpi_notify);
|
||||||
|
|
Loading…
Reference in New Issue