diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2009-06-16 05:23:13 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-06-24 05:38:41 +0200 |
commit | 86e437f077c68112edcb6854ec036ed7e3f9a7f3 (patch) | |
tree | ac6ec8b6ac4f96ce7ef7b5e9fa057099d7ce9af1 /Documentation/laptops/sony-laptop.txt | |
parent | Linux 2.6.30 (diff) | |
download | linux-86e437f077c68112edcb6854ec036ed7e3f9a7f3.tar.xz linux-86e437f077c68112edcb6854ec036ed7e3f9a7f3.zip |
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>
Diffstat (limited to 'Documentation/laptops/sony-laptop.txt')
0 files changed, 0 insertions, 0 deletions