Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163943
b: refs/heads/master
c: 3b51096
h: refs/heads/master
i:
  163941: 7d8fc8b
  163939: 07f144b
  163935: 6a57a17
v: v3
  • Loading branch information
Alexey Dobriyan authored and Dave Airlie committed Aug 30, 2009
1 parent cd0888c commit b48c3f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 882f0219518196a94cd2772004e87b178467139a
refs/heads/master: 3b51096f95633e6ab47675984e8e38fc37b09eeb
13 changes: 7 additions & 6 deletions trunk/drivers/gpu/drm/drm_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,21 @@ int drm_proc_create_files(struct drm_info_list *files, int count,
ret = -1;
goto fail;
}
ent = create_proc_entry(files[i].name, S_IFREG | S_IRUGO, root);
tmp->minor = minor;
tmp->info_ent = &files[i];
list_add(&tmp->list, &minor->proc_nodes.list);

ent = proc_create_data(files[i].name, S_IRUGO, root,
&drm_proc_fops, tmp);
if (!ent) {
DRM_ERROR("Cannot create /proc/dri/%s/%s\n",
name, files[i].name);
list_del(&tmp->list);
kfree(tmp);
ret = -1;
goto fail;
}

ent->proc_fops = &drm_proc_fops;
ent->data = tmp;
tmp->minor = minor;
tmp->info_ent = &files[i];
list_add(&(tmp->list), &(minor->proc_nodes.list));
}
return 0;

Expand Down

0 comments on commit b48c3f7

Please sign in to comment.