Commit 095f979a539245a46b9e5d600ec9c720b4d928e5
1 parent
96067adf55
Exists in
master
and in
20 other branches
drm/nouveau/pm: fix build with HWMON off
Reported-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/gpu/drm/nouveau/nouveau_pm.c
... | ... | @@ -663,9 +663,9 @@ |
663 | 663 | static int |
664 | 664 | nouveau_hwmon_init(struct drm_device *dev) |
665 | 665 | { |
666 | -#if defined(CONFIG_HWMON) || (defined(MODULE) && defined(CONFIG_HWMON_MODULE)) | |
667 | 666 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
668 | 667 | struct nouveau_pm_engine *pm = &dev_priv->engine.pm; |
668 | +#if defined(CONFIG_HWMON) || (defined(MODULE) && defined(CONFIG_HWMON_MODULE)) | |
669 | 669 | struct device *hwmon_dev; |
670 | 670 | int ret = 0; |
671 | 671 |