Re: acpi : acpi_bus_trim() stops removing devices when failing to remove the device

2012-10-10 Thread Yasuaki Ishimatsu
Hi Toshi, 2012/10/10 22:01, Toshi Kani wrote: On Wed, 2012-10-10 at 10:07 +0900, Yasuaki Ishimatsu wrote: : if (acpi_drv) { if (acpi_drv->ops.notify) acpi_device_remove_notify_handler(acpi_dev); THIS CALL - if

Re: acpi : acpi_bus_trim() stops removing devices when failing to remove the device

2012-10-10 Thread Toshi Kani
On Wed, 2012-10-10 at 10:07 +0900, Yasuaki Ishimatsu wrote: : > >>if (acpi_drv) { > >>if (acpi_drv->ops.notify) > >>acpi_device_remove_notify_handler(acpi_dev); THIS CALL > >> - if (acpi_drv->ops.remove) > >> -

Re: acpi : acpi_bus_trim() stops removing devices when failing to remove the device

2012-10-10 Thread Toshi Kani
On Wed, 2012-10-10 at 10:07 +0900, Yasuaki Ishimatsu wrote: : if (acpi_drv) { if (acpi_drv-ops.notify) acpi_device_remove_notify_handler(acpi_dev); THIS CALL - if (acpi_drv-ops.remove) - acpi_drv-ops.remove(acpi_dev,

Re: acpi : acpi_bus_trim() stops removing devices when failing to remove the device

2012-10-10 Thread Yasuaki Ishimatsu
Hi Toshi, 2012/10/10 22:01, Toshi Kani wrote: On Wed, 2012-10-10 at 10:07 +0900, Yasuaki Ishimatsu wrote: : if (acpi_drv) { if (acpi_drv-ops.notify) acpi_device_remove_notify_handler(acpi_dev); THIS CALL - if

Re: acpi : acpi_bus_trim() stops removing devices when failing to remove the device

2012-10-09 Thread Yasuaki Ishimatsu
Hi Toshi, 2012/10/10 1:36, Toshi Kani wrote: On Tue, 2012-10-09 at 17:48 +0900, Yasuaki Ishimatsu wrote: acpi_bus_trim() stops removing devices, when acpi_bus_remove() return error number. But acpi_bus_remove() cannot return error number correctly. acpi_bus_remove() only return -EINVAL, when

Re: acpi : acpi_bus_trim() stops removing devices when failing to remove the device

2012-10-09 Thread Toshi Kani
On Tue, 2012-10-09 at 17:48 +0900, Yasuaki Ishimatsu wrote: > acpi_bus_trim() stops removing devices, when acpi_bus_remove() return error > number. But acpi_bus_remove() cannot return error number correctly. > acpi_bus_remove() only return -EINVAL, when dev argument is NULL. Thus even if > device

Re: acpi : acpi_bus_trim() stops removing devices when failing to remove the device

2012-10-09 Thread Toshi Kani
On Tue, 2012-10-09 at 17:48 +0900, Yasuaki Ishimatsu wrote: acpi_bus_trim() stops removing devices, when acpi_bus_remove() return error number. But acpi_bus_remove() cannot return error number correctly. acpi_bus_remove() only return -EINVAL, when dev argument is NULL. Thus even if device

Re: acpi : acpi_bus_trim() stops removing devices when failing to remove the device

2012-10-09 Thread Yasuaki Ishimatsu
Hi Toshi, 2012/10/10 1:36, Toshi Kani wrote: On Tue, 2012-10-09 at 17:48 +0900, Yasuaki Ishimatsu wrote: acpi_bus_trim() stops removing devices, when acpi_bus_remove() return error number. But acpi_bus_remove() cannot return error number correctly. acpi_bus_remove() only return -EINVAL, when