]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/hwmon: fix crash on non-PCI platforms
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 2 Mar 2016 10:13:42 +0000 (19:13 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 14 Mar 2016 00:13:33 +0000 (10:13 +1000)
commitd147131f7059ebba4111aa3ad0363f1754c4cedb
tree55755881394cb3425791bd037d6442573947bf63
parentdf5c272b05e0c86b59bd9b53ebee2a57f12b650f
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>
drivers/gpu/drm/nouveau/nouveau_hwmon.c