commit | f2014cd02cdd54f5f286221925b13c3d19addd52 | [log] [tgz] |
---|---|---|
author | Alexandre Courbot <acourbot@nvidia.com> | Wed Mar 02 19:13:42 2016 +0900 |
committer | Ben Skeggs <bskeggs@redhat.com> | Mon Mar 14 10:13:33 2016 +1000 |
tree | 55755881394cb3425791bd037d6442573947bf63 | |
parent | f2a0adadeb53f6df93362cb18f797912224932c4 [diff] |
drm/nouveau/hwmon: fix crash on non-PCI platforms Registration of the hwmon device will fail on non-PCI systems since dev->pdev is NULL in that case. Use the more generic drm_device::dev member that points to the same and is always set no matter the platform. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>