Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
Merge commit. Changes below are compared with the first parent: 682a2512.
Changes
2 files changed · +1 −2
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| drivers/gpu/drm/drm_sysfs.c | modified | +1 | −1 | View file |
| drivers/gpu/drm/nouveau/nouveau_hwmon.c | modified | +0 | −1 | View file |
drivers/gpu/drm/drm_sysfs.c
View filediff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c
index bd2bca3..c22c309 100644
--- a/drivers/gpu/drm/drm_sysfs.c
+++ b/drivers/gpu/drm/drm_sysfs.c
@@ -516,7 +516,7 @@ int drm_sysfs_device_add(struct drm_minor *minor)
minor_str = "card%d";
minor->kdev = kzalloc(sizeof(*minor->kdev), GFP_KERNEL);
- if (!minor->dev) {
+ if (!minor->kdev) {
r = -ENOMEM;
goto error;
}
drivers/gpu/drm/nouveau/nouveau_hwmon.c
View filediff --git a/drivers/gpu/drm/nouveau/nouveau_hwmon.c b/drivers/gpu/drm/nouveau/nouveau_hwmon.c
index 38a4db5..4aff04f 100644
--- a/drivers/gpu/drm/nouveau/nouveau_hwmon.c
+++ b/drivers/gpu/drm/nouveau/nouveau_hwmon.c
@@ -630,7 +630,6 @@ error:
hwmon->hwmon = NULL;
return ret;
#else
- hwmon->hwmon = NULL;
return 0;
#endif
}