* [PATCH 2/7] Fix a defined-but-not-used warning for do_gma_backlight_set()
@ 2014-01-03 16:07 David Howells
0 siblings, 0 replies; only message in thread
From: David Howells @ 2014-01-03 16:07 UTC (permalink / raw)
To: akpm; +Cc: dhowells, Greg Kroah-Hartman, linux-kernel, Alan Cox
Fix the following warning:
drivers/gpu/drm/gma500/backlight.c:29:13: warning: 'do_gma_backlight_set' defined but not used [-Wunused-function]
by moving the entire function inside the conditional section currently inside
of it. All the places that call it are so conditionalised.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Alan Cox <alan@linux.intel.com>
cc: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/gpu/drm/gma500/backlight.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/gma500/backlight.c b/drivers/gpu/drm/gma500/backlight.c
index 143eba3309c5..d4f79bc3665e 100644
--- a/drivers/gpu/drm/gma500/backlight.c
+++ b/drivers/gpu/drm/gma500/backlight.c
@@ -26,13 +26,13 @@
#include "intel_bios.h"
#include "power.h"
+#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
static void do_gma_backlight_set(struct drm_device *dev)
{
-#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
struct drm_psb_private *dev_priv = dev->dev_private;
backlight_update_status(dev_priv->backlight_device);
-#endif
}
+#endif
void gma_backlight_enable(struct drm_device *dev)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-03 16:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-03 16:07 [PATCH 2/7] Fix a defined-but-not-used warning for do_gma_backlight_set() David Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®