summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-06-27 18:58:13 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-06-27 18:58:13 +0200
commit91c742663a618e81da69ad4f098321d9af56d636 (patch)
tree0b3bf333ce0f5753d5b92d07a7187720aba56e01 /shared-core
parent9f28da80f6cc8e45670b217a2483983f2838095d (diff)
NV50: use list_head item instead of list_head head to avoid confusion
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;