kernel-fxtec-pro1x/drivers/gpu/drm/i915
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
..
dvo.h drm/i915: fix sparse warnings: move 'extern' decls to header file 2008-12-29 17:47:26 +10:00
dvo_ch7xxx.c DRM: i915: add mode setting support 2008-12-29 17:47:23 +10:00
dvo_ch7017.c DRM: i915: add mode setting support 2008-12-29 17:47:23 +10:00
dvo_ivch.c DRM: i915: add mode setting support 2008-12-29 17:47:23 +10:00
dvo_sil164.c DRM: i915: add mode setting support 2008-12-29 17:47:23 +10:00
dvo_tfp410.c DRM: i915: add mode setting support 2008-12-29 17:47:23 +10:00
i915_dma.c drm: fix irq naming for kms drivers. 2009-06-04 09:14:07 +10:00
i915_drv.c drm/i915: Unregister ACPI video driver when exiting 2009-04-17 13:31:07 -07:00
i915_drv.h drm/i915: Fetch SDVO LVDS mode lines from VBT, then reserve them 2009-05-22 12:54:22 -07:00
i915_gem.c drm/i915: Remove a bad BUG_ON in the fence management code. 2009-06-04 11:43:09 +00:00
i915_gem_debug.c drm/i915: Add a spinlock to protect the active_list 2009-04-01 15:22:07 -07:00
i915_gem_debugfs.c drm/i915: Implement batch and ring buffer dumping 2009-04-08 10:18:06 -07:00
i915_gem_tiling.c drm/i915: Fix tiling pitch handling on 8xx. 2009-05-26 19:11:31 -07:00
i915_ioc32.c drm: reorganise drm tree to be more future proof. 2008-07-14 10:45:01 +10:00
i915_irq.c drm/i915: Don't let an oops get triggered from irq_emit without dma init. 2009-04-17 13:30:50 -07:00
i915_mem.c drm: move to kref per-master structures. 2008-12-29 17:47:22 +10:00
i915_opregion.c ACPI: Add the reference count to avoid unloading ACPI video bus twice 2009-06-23 23:38:41 -04:00
i915_reg.h drm/i915: Fix tiling pitch handling on 8xx. 2009-05-26 19:11:31 -07:00
i915_suspend.c drm/i915: save/restore fence registers across suspend/resume 2009-04-30 16:04:40 -07:00
intel_bios.c drm/i915: Fetch SDVO LVDS mode lines from VBT, then reserve them 2009-05-22 12:54:22 -07:00
intel_bios.h drm/i915: Fetch SDVO LVDS mode lines from VBT, then reserve them 2009-05-22 12:54:22 -07:00
intel_crt.c drm: Hook up DPMS property handling in drm_crtc.c. Add drm_helper_connector_dpms. 2009-06-04 09:32:12 +10:00
intel_display.c i915: support 8xx desktop cursors 2009-05-22 12:31:14 -07:00
intel_drv.h drm/i915: Add new GET_PIPE_FROM_CRTC_ID ioctl. 2009-05-14 16:00:32 -07:00
intel_dvo.c drm: Hook up DPMS property handling in drm_crtc.c. Add drm_helper_connector_dpms. 2009-06-04 09:32:12 +10:00
intel_fb.c sysrq, intel_fb: fix sysrq g collision 2009-05-15 07:56:24 -05:00
intel_hdmi.c drm: Hook up DPMS property handling in drm_crtc.c. Add drm_helper_connector_dpms. 2009-06-04 09:32:12 +10:00
intel_i2c.c drm/i915: workaround IGD i2c bus issue in kernel side (v2) 2009-05-14 16:00:26 -07:00
intel_lvds.c drm/i915: intel_lvds.c fix section mismatch 2009-06-04 09:41:19 +10:00
intel_modes.c drm/i915: workaround IGD i2c bus issue in kernel side (v2) 2009-05-14 16:00:26 -07:00
intel_sdvo.c drm: Hook up DPMS property handling in drm_crtc.c. Add drm_helper_connector_dpms. 2009-06-04 09:32:12 +10:00
intel_sdvo_regs.h drm/i915: Fix SDVO CREATE_PREFERRED_INPUT_TIMING command 2009-04-01 15:22:04 -07:00
intel_tv.c drm: Hook up DPMS property handling in drm_crtc.c. Add drm_helper_connector_dpms. 2009-06-04 09:32:12 +10:00
Makefile drm/i915: Convert i915 proc files to seq_file and move to debugfs. 2009-03-27 15:12:01 -07:00