Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81005
b: refs/heads/master
c: 0d9dc4b
h: refs/heads/master
i:
  81003: be36a70
v: v3
  • Loading branch information
Nathan Lynch authored and Paul Mackerras committed Dec 11, 2007
1 parent 4a7f63d commit 86d7ea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 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: 24f1f17579e4cf2aeeb3a2813cc7757fa30d7a09
refs/heads/master: 0d9dc4b473f7224cc1798c96d5dba84b69212163
12 changes: 1 addition & 11 deletions trunk/arch/powerpc/kernel/lparcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
/* #define LPARCFG_DEBUG */

static struct proc_dir_entry *proc_ppc64_lparcfg;
#define LPARCFG_BUFF_SIZE 4096

/*
* Track sum of all purrs across all processors. This is used to further
Expand Down Expand Up @@ -595,13 +594,6 @@ int __init lparcfg_init(void)
ent = create_proc_entry("ppc64/lparcfg", mode, NULL);
if (ent) {
ent->proc_fops = &lparcfg_fops;
ent->data = kmalloc(LPARCFG_BUFF_SIZE, GFP_KERNEL);
if (!ent->data) {
printk(KERN_ERR
"Failed to allocate buffer for lparcfg\n");
remove_proc_entry("lparcfg", ent->parent);
return -ENOMEM;
}
} else {
printk(KERN_ERR "Failed to create ppc64/lparcfg\n");
return -EIO;
Expand All @@ -613,10 +605,8 @@ int __init lparcfg_init(void)

void __exit lparcfg_cleanup(void)
{
if (proc_ppc64_lparcfg) {
kfree(proc_ppc64_lparcfg->data);
if (proc_ppc64_lparcfg)
remove_proc_entry("lparcfg", proc_ppc64_lparcfg->parent);
}
}

module_init(lparcfg_init);
Expand Down

0 comments on commit 86d7ea5

Please sign in to comment.