drm: radeon: ni_dpm: Fix unused variable warning when CONFIG_ACPI=n
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 9 Nov 2013 17:59:02 +0000 (15:59 -0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Nov 2013 20:29:31 +0000 (15:29 -0500)
commit71473dbd66d4a61be4cd531ef96b4877f6ee3941
treedeb4ac29e6484c2fbfe5439079a92c9c73559556
parenta3483353ca4e6dbeef2ed62ebed01af109b5b27a
drm: radeon: ni_dpm: Fix unused variable warning when CONFIG_ACPI=n

With CONFIG_ACPI=n the following build warning is seen:

drivers/gpu/drm/radeon/ni_dpm.c:3448:31: warning: unused variable 'eg_pi' [-Wunused-variable]

Move the definition of eg_pi inside the CONFIG_ACPI 'if' block.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/ni_dpm.c