]> git.baikalelectronics.ru Git - kernel.git/commit
drm: nouveau: Fix build warning seen if HWMON is undefined
authorGuenter Roeck <linux@roeck-us.net>
Tue, 1 Jan 2013 11:28:00 +0000 (03:28 -0800)
committerDave Airlie <airlied@redhat.com>
Fri, 4 Jan 2013 06:03:33 +0000 (16:03 +1000)
commita87e3eaf6cec424df446761f6a0594e76f62a9ae
tree57f5bb9f4b8c8d32714df1f5d0aba21bd68181b2
parentccf4ffa43653d6b42685d3a2c429d84295432656
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 2794e225 (drm/nouveau/pm: fix build with HWMON off) which
fixed a build error but introduced a build warning.

Cc: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_pm.c