Skip to content

Commit 095f979

Browse files
committed
drm/nouveau/pm: fix build with HWMON off
Reported-by: Randy Dunlap <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
1 parent 96067ad commit 095f979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/nouveau/nouveau_pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,9 @@ static const struct attribute_group hwmon_pwm_fan_attrgroup = {
663663
static int
664664
nouveau_hwmon_init(struct drm_device *dev)
665665
{
666-
#if defined(CONFIG_HWMON) || (defined(MODULE) && defined(CONFIG_HWMON_MODULE))
667666
struct drm_nouveau_private *dev_priv = dev->dev_private;
668667
struct nouveau_pm_engine *pm = &dev_priv->engine.pm;
668+
#if defined(CONFIG_HWMON) || (defined(MODULE) && defined(CONFIG_HWMON_MODULE))
669669
struct device *hwmon_dev;
670670
int ret = 0;
671671

0 commit comments

Comments
 (0)