summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_irq.c4
-rw-r--r--shared-core/nouveau_mem.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/shared-core/nouveau_irq.c b/shared-core/nouveau_irq.c
index e68b755f..4c46da8d 100644
--- a/shared-core/nouveau_irq.c
+++ b/shared-core/nouveau_irq.c
@@ -549,7 +549,7 @@ nouveau_nv50_display_irq_handler(struct drm_device *dev)
if (display->last_crtc == crtc_index)
clock_ack = true;
- list_for_each_entry(crtc, &display->crtcs, head) {
+ list_for_each_entry(crtc, &display->crtcs, item) {
if (crtc->index == crtc_index)
break;
}
@@ -564,7 +564,7 @@ nouveau_nv50_display_irq_handler(struct drm_device *dev)
crtc->set_clock_mode(crtc);
- list_for_each_entry(output, &display->outputs, head) {
+ list_for_each_entry(output, &display->outputs, item) {
if (!output->crtc)
continue;
diff --git a/shared-core/nouveau_mem.c b/shared-core/nouveau_mem.c
index 46b6e4d6..425cebe2 100644
--- a/shared-core/nouveau_mem.c
+++ b/shared-core/nouveau_mem.c
@@ -738,7 +738,7 @@ void nouveau_mem_free(struct drm_device* dev, struct mem_block* block)
struct nv50_crtc *crtc = NULL;
struct nv50_display *display = nv50_get_display(dev);
- list_for_each_entry(crtc, &display->crtcs, head) {
+ list_for_each_entry(crtc, &display->crtcs, item) {
if (crtc->fb->block == block) {
crtc->fb->block = NULL;