linux/include/acpi
Zhao Yakui 86e437f077 ACPI: Add the reference count to avoid unloading ACPI video bus twice
Sometimes both acpi video and i915 driver are compiled as modules.
And there exists the strict dependency between the two drivers.
The acpi video bus will be unloaded in course of unloading the i915 driver.
If we unload the acpi video driver, then the kernel oops will be triggered.

Add the reference count to avoid unloading the ACPI video bus twice.
The reference count should be checked before unregistering the acpi video bus.
If the reference count is already zero, it won't unregister it again.
And after the acpi video bus is already unregistered, the reference count
will be set to zero.

http://bugzilla.kernel.org/show_bug.cgi?id=13396

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2009-06-23 23:38:41 -04:00
..
platform Merge branch 'simplify_PRT' into release 2009-01-09 03:41:08 -05:00
acexcep.h ACPICA: Fix parameter validation for acpi_read/write 2009-03-26 16:38:25 -04:00
acnames.h
acoutput.h ACPICA: Restructure includes into public/private 2008-12-31 01:15:40 -05:00
acpi_bus.h ACPI: delete acpi_device.g_list 2009-04-07 02:02:15 -04:00
acpi_drivers.h ACPI: support acpi_device_ops .notify methods 2009-04-05 02:25:07 -04:00
acpi_numa.h
acpi.h ACPICA: Restructure includes into public/private 2008-12-31 01:15:40 -05:00
acpiosxf.h Merge branch 'linus' into release 2009-04-05 02:14:15 -04:00
acpixf.h hwmon: Add Asus ATK0110 support 2009-04-07 15:32:59 +02:00
acrestyp.h ACPICA: Restructure includes into public/private 2008-12-31 01:15:40 -05:00
actbl1.h ACPI: update x2apic comments 2009-04-03 20:10:26 -04:00
actbl.h ACPICA: Update FADT flag definitions 2009-03-26 16:38:21 -04:00
actypes.h ACPICA: Add manifest constants for bit register values 2009-03-27 12:11:01 -04:00
container.h
pdc_intel.h ACPI: Enable bit 11 in _PDC to advertise hw coord 2009-02-07 00:41:14 -05:00
processor.h ACPI: delete obsolete "bus master activity" proc field 2009-04-22 19:56:09 -04:00
reboot.h
video.h ACPI: Add the reference count to avoid unloading ACPI video bus twice 2009-06-23 23:38:41 -04:00