drm/nouveau: fix temp/pwm visibility, skip hwmon when no sensors exist
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 22 Apr 2018 21:47:12 +0000 (17:47 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 18 May 2018 07:09:48 +0000 (17:09 +1000)
commit7a22c737faef99d6f75d7049c1a2f6f0fdefb1ec
tree8eeff3baea6bc61d55d48b73202a09d2496be3f7
parentf43cda5c76922777f4fe5026ee5984364ae5a918
drm/nouveau: fix temp/pwm visibility, skip hwmon when no sensors exist

A NV34 GPU was seeing temp and pwm entries in hwmon, which would error
out when read. These should not have been visible, but also the whole
hwmon object should just not have been registered in the first place.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_hwmon.c