gma500: silence an unused variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 10 May 2012 07:33:02 +0000 (10:33 +0300)
committerDave Airlie <airlied@redhat.com>
Thu, 17 May 2012 10:15:23 +0000 (11:15 +0100)
commitfcf92202e7bc2e8513ae045e3ec61e79c1c9e690
treed518feb028130214aafc406c47b93f8791a85f0b
parentce0679136678a58cbeca40acd84b6a0462637454
gma500: silence an unused variable warning

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 <dan.carpenter@oracle.com>
Acked-by: Paul Menzel <paulepanter@users.sourceforge.net>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/opregion.c