Skip to contentSkip to conversation

drm/i915: comment out unused function 'i915_driver_firstopen'

PATCH New Hannes Eder 1 participant 1 message Dec 18, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 5/6 drm/i915: comment out unused function 'i915_driver_firstopen'

Fix this warning:

drivers/gpu/drm/i915/i915_dma.c:1011: warning: 'i915_driver_firstopen' defined but not used

---
 drivers/gpu/drm/i915/i915_dma.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/i915/i915_dma.c +2 -0
index 36a6884..10f3fe6 100644
@@ -1007,12 +1007,14 @@ void i915_master_destroy(struct drm_device *dev, struct drm_master *master)
 }
 
 
+#ifdef UNUSED
 static int i915_driver_firstopen(struct drm_device *dev)
 {
 	if (drm_core_check_feature(dev, DRIVER_MODESET))
 		return 0;
 	return 0;
 }
+#endif /* UNUSED */
 
 /**
  * i915_driver_load - setup chip and create an initial config
Signature · 1 line
1.5.6.3