summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-01-10 10:13:16 +0000
committerDave Airlie <airlied@redhat.com>2012-01-10 10:13:16 +0000
commit095f979a539245a46b9e5d600ec9c720b4d928e5 (patch)
treef8632cdddd2c041d751111511d05fedd136fc432 /drivers/gpu
parent96067adf55bd93618cec4b6de08aebaad8203c9b (diff)
downloadlinux-3.10-095f979a539245a46b9e5d600ec9c720b4d928e5.tar.gz
linux-3.10-095f979a539245a46b9e5d600ec9c720b4d928e5.tar.bz2
linux-3.10-095f979a539245a46b9e5d600ec9c720b4d928e5.zip
drm/nouveau/pm: fix build with HWMON off
Reported-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_pm.c b/drivers/gpu/drm/nouveau/nouveau_pm.c
index aba3362d421..9064d7f1979 100644
--- a/drivers/gpu/drm/nouveau/nouveau_pm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_pm.c
@@ -663,9 +663,9 @@ static const struct attribute_group hwmon_pwm_fan_attrgroup = {
static int
nouveau_hwmon_init(struct drm_device *dev)
{
-#if defined(CONFIG_HWMON) || (defined(MODULE) && defined(CONFIG_HWMON_MODULE))
struct drm_nouveau_private *dev_priv = dev->dev_private;
struct nouveau_pm_engine *pm = &dev_priv->engine.pm;
+#if defined(CONFIG_HWMON) || (defined(MODULE) && defined(CONFIG_HWMON_MODULE))
struct device *hwmon_dev;
int ret = 0;