diff options
Diffstat (limited to 'arch/ppc64/kernel/lparcfg.c')
-rw-r--r-- | arch/ppc64/kernel/lparcfg.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/ppc64/kernel/lparcfg.c b/arch/ppc64/kernel/lparcfg.c index cae19bbd5acd..3e7b2f28ec83 100644 --- a/arch/ppc64/kernel/lparcfg.c +++ b/arch/ppc64/kernel/lparcfg.c | |||
@@ -26,14 +26,14 @@ | |||
26 | #include <linux/init.h> | 26 | #include <linux/init.h> |
27 | #include <linux/seq_file.h> | 27 | #include <linux/seq_file.h> |
28 | #include <asm/uaccess.h> | 28 | #include <asm/uaccess.h> |
29 | #include <asm/iSeries/HvLpConfig.h> | 29 | #include <asm/iseries/hv_lp_config.h> |
30 | #include <asm/lppaca.h> | 30 | #include <asm/lppaca.h> |
31 | #include <asm/hvcall.h> | 31 | #include <asm/hvcall.h> |
32 | #include <asm/firmware.h> | 32 | #include <asm/firmware.h> |
33 | #include <asm/rtas.h> | 33 | #include <asm/rtas.h> |
34 | #include <asm/system.h> | 34 | #include <asm/system.h> |
35 | #include <asm/time.h> | 35 | #include <asm/time.h> |
36 | #include <asm/iSeries/ItExtVpdPanel.h> | 36 | #include <asm/iseries/it_exp_vpd_panel.h> |
37 | #include <asm/prom.h> | 37 | #include <asm/prom.h> |
38 | 38 | ||
39 | #define MODULE_VERS "1.6" | 39 | #define MODULE_VERS "1.6" |
@@ -599,9 +599,7 @@ int __init lparcfg_init(void) | |||
599 | void __exit lparcfg_cleanup(void) | 599 | void __exit lparcfg_cleanup(void) |
600 | { | 600 | { |
601 | if (proc_ppc64_lparcfg) { | 601 | if (proc_ppc64_lparcfg) { |
602 | if (proc_ppc64_lparcfg->data) { | 602 | kfree(proc_ppc64_lparcfg->data); |
603 | kfree(proc_ppc64_lparcfg->data); | ||
604 | } | ||
605 | remove_proc_entry("lparcfg", proc_ppc64_lparcfg->parent); | 603 | remove_proc_entry("lparcfg", proc_ppc64_lparcfg->parent); |
606 | } | 604 | } |
607 | } | 605 | } |