aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2014-01-23 18:54:03 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-23 19:36:55 -0500
commite13e64ece037104f5b04d0e98929ad2149c5bb09 (patch)
treef453af7dd7ec8e1e6ee6d8693f0c1cdb6c149000
parent00b2c76a6abbe082bb5afb89ee49ec325e9cd4d2 (diff)
drivers/gpu/drm/gma500/backlight.c: fix a defined-but-not-used warning for do_gma_backlight_set()
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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/gpu/drm/gma500/backlight.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/gma500/backlight.c b/drivers/gpu/drm/gma500/backlight.c
index 143eba3309c5..ea7dfc59d796 100644
--- a/drivers/gpu/drm/gma500/backlight.c
+++ b/drivers/gpu/drm/gma500/backlight.c
@@ -26,13 +26,13 @@
26#include "intel_bios.h" 26#include "intel_bios.h"
27#include "power.h" 27#include "power.h"
28 28
29#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
29static void do_gma_backlight_set(struct drm_device *dev) 30static void do_gma_backlight_set(struct drm_device *dev)
30{ 31{
31#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
32 struct drm_psb_private *dev_priv = dev->dev_private; 32 struct drm_psb_private *dev_priv = dev->dev_private;
33 backlight_update_status(dev_priv->backlight_device); 33 backlight_update_status(dev_priv->backlight_device);
34#endif
35} 34}
35#endif
36 36
37void gma_backlight_enable(struct drm_device *dev) 37void gma_backlight_enable(struct drm_device *dev)
38{ 38{