[patch] gma500: silence an unused variable warning

2012-05-10 Thread Alan Cox
On Thu, 10 May 2012 10:33:02 +0300 Dan Carpenter wrote: > If CONFIG_BACKLIGHT_CLASS_DEVICE is disabled then GCC warns that: > drivers/gpu/drm/gma500/opregion.c:154:6: warning: > unused variable ?max? [-Wunused-variable] > > Which give me a chance to use the new

[patch] gma500: silence an unused variable warning

2012-05-10 Thread Kirill A. Shutemov
On Thu, May 10, 2012 at 10:33:02AM +0300, Dan Carpenter wrote: > If CONFIG_BACKLIGHT_CLASS_DEVICE is disabled then GCC warns that: > drivers/gpu/drm/gma500/opregion.c:154:6: warning: > unused variable ?max? [-Wunused-variable] > > Which give me a chance to use the new

[patch] gma500: silence an unused variable warning

2012-05-10 Thread Dan Carpenter
If CONFIG_BACKLIGHT_CLASS_DEVICE is disabled then GCC warns that: drivers/gpu/drm/gma500/opregion.c:154:6: warning: unused variable ?max? [-Wunused-variable] Which give me a chance to use the new config_enabled() macro. :) Signed-off-by: Dan Carpenter diff --git

[patch] gma500: silence an unused variable warning

2012-05-10 Thread Paul Menzel
Am Donnerstag, den 10.05.2012, 10:33 +0300 schrieb Dan Carpenter: > If CONFIG_BACKLIGHT_CLASS_DEVICE is disabled then GCC warns that: > drivers/gpu/drm/gma500/opregion.c:154:6: warning: > unused variable ?max? [-Wunused-variable] > > Which give me a chance to use the new

Re: [patch] gma500: silence an unused variable warning

2012-05-10 Thread Kirill A. Shutemov
On Thu, May 10, 2012 at 10:33:02AM +0300, Dan Carpenter wrote: If CONFIG_BACKLIGHT_CLASS_DEVICE is disabled then GCC warns that: drivers/gpu/drm/gma500/opregion.c:154:6: warning: unused variable ‘max’ [-Wunused-variable] Which give me a chance to use the new

Re: [patch] gma500: silence an unused variable warning

2012-05-10 Thread Paul Menzel
Am Donnerstag, den 10.05.2012, 10:33 +0300 schrieb Dan Carpenter: If CONFIG_BACKLIGHT_CLASS_DEVICE is disabled then GCC warns that: drivers/gpu/drm/gma500/opregion.c:154:6: warning: unused variable ‘max’ [-Wunused-variable] Which give me a chance to use the new