mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
drm: nouveau: Fix build warning seen if HWMON is undefined
Fix:
nouveau_pm.c: In function ‘nouveau_hwmon_init’:
nouveau_pm.c:703:24: warning: unused variable ‘therm’ [-Wunused-variable]
Introduced by commit 095f979a (drm/nouveau/pm: fix build with HWMON off) which
fixed a build error but introduced a build warning.
Cc: Randy Dunlap <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
parent
e61e512b5a
commit
57cdf82ce5
1 changed files with 2 additions and 2 deletions
|
|
@ -698,10 +698,10 @@ static int
|
|||
nouveau_hwmon_init(struct drm_device *dev)
|
||||
{
|
||||
struct nouveau_pm *pm = nouveau_pm(dev);
|
||||
struct nouveau_drm *drm = nouveau_drm(dev);
|
||||
struct nouveau_therm *therm = nouveau_therm(drm->device);
|
||||
|
||||
#if defined(CONFIG_HWMON) || (defined(MODULE) && defined(CONFIG_HWMON_MODULE))
|
||||
struct nouveau_drm *drm = nouveau_drm(dev);
|
||||
struct nouveau_therm *therm = nouveau_therm(drm->device);
|
||||
struct device *hwmon_dev;
|
||||
int ret = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue