mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 5/6] drm/i915: comment out unused function 'i915_driver_firstopen'
@ 2008-12-18 20:25 Hannes Eder
  0 siblings, 0 replies; only message in thread
From: Hannes Eder @ 2008-12-18 20:25 UTC (permalink / raw)
  To: David Airlie; +Cc: dri-devel, linux-kernel, kernel-janitors

Fix this warning:

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

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
---
 drivers/gpu/drm/i915/i915_dma.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 36a6884..10f3fe6 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -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
-- 
1.5.6.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-18 23:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-18 20:25 [PATCH 5/6] drm/i915: comment out unused function 'i915_driver_firstopen' Hannes Eder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome