diff options
Diffstat (limited to 'drivers/acpi/system.c')
-rw-r--r-- | drivers/acpi/system.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/drivers/acpi/system.c b/drivers/acpi/system.c index 56a746bad495..c90bd2f70b3f 100644 --- a/drivers/acpi/system.c +++ b/drivers/acpi/system.c | |||
@@ -47,10 +47,9 @@ extern struct fadt_descriptor acpi_fadt; | |||
47 | 47 | ||
48 | static int acpi_system_read_info(struct seq_file *seq, void *offset) | 48 | static int acpi_system_read_info(struct seq_file *seq, void *offset) |
49 | { | 49 | { |
50 | ACPI_FUNCTION_TRACE("acpi_system_read_info"); | ||
51 | 50 | ||
52 | seq_printf(seq, "version: %x\n", ACPI_CA_VERSION); | 51 | seq_printf(seq, "version: %x\n", ACPI_CA_VERSION); |
53 | return_VALUE(0); | 52 | return 0; |
54 | } | 53 | } |
55 | 54 | ||
56 | static int acpi_system_info_open_fs(struct inode *inode, struct file *file) | 55 | static int acpi_system_info_open_fs(struct inode *inode, struct file *file) |
@@ -80,17 +79,16 @@ acpi_system_read_dsdt(struct file *file, | |||
80 | struct acpi_buffer dsdt = { ACPI_ALLOCATE_BUFFER, NULL }; | 79 | struct acpi_buffer dsdt = { ACPI_ALLOCATE_BUFFER, NULL }; |
81 | ssize_t res; | 80 | ssize_t res; |
82 | 81 | ||
83 | ACPI_FUNCTION_TRACE("acpi_system_read_dsdt"); | ||
84 | 82 | ||
85 | status = acpi_get_table(ACPI_TABLE_ID_DSDT, 1, &dsdt); | 83 | status = acpi_get_table(ACPI_TABLE_ID_DSDT, 1, &dsdt); |
86 | if (ACPI_FAILURE(status)) | 84 | if (ACPI_FAILURE(status)) |
87 | return_VALUE(-ENODEV); | 85 | return -ENODEV; |
88 | 86 | ||
89 | res = simple_read_from_buffer(buffer, count, ppos, | 87 | res = simple_read_from_buffer(buffer, count, ppos, |
90 | dsdt.pointer, dsdt.length); | 88 | dsdt.pointer, dsdt.length); |
91 | acpi_os_free(dsdt.pointer); | 89 | acpi_os_free(dsdt.pointer); |
92 | 90 | ||
93 | return_VALUE(res); | 91 | return res; |
94 | } | 92 | } |
95 | 93 | ||
96 | static ssize_t acpi_system_read_fadt(struct file *, char __user *, size_t, | 94 | static ssize_t acpi_system_read_fadt(struct file *, char __user *, size_t, |
@@ -108,17 +106,16 @@ acpi_system_read_fadt(struct file *file, | |||
108 | struct acpi_buffer fadt = { ACPI_ALLOCATE_BUFFER, NULL }; | 106 | struct acpi_buffer fadt = { ACPI_ALLOCATE_BUFFER, NULL }; |
109 | ssize_t res; | 107 | ssize_t res; |
110 | 108 | ||
111 | ACPI_FUNCTION_TRACE("acpi_system_read_fadt"); | ||
112 | 109 | ||
113 | status = acpi_get_table(ACPI_TABLE_ID_FADT, 1, &fadt); | 110 | status = acpi_get_table(ACPI_TABLE_ID_FADT, 1, &fadt); |
114 | if (ACPI_FAILURE(status)) | 111 | if (ACPI_FAILURE(status)) |
115 | return_VALUE(-ENODEV); | 112 | return -ENODEV; |
116 | 113 | ||
117 | res = simple_read_from_buffer(buffer, count, ppos, | 114 | res = simple_read_from_buffer(buffer, count, ppos, |
118 | fadt.pointer, fadt.length); | 115 | fadt.pointer, fadt.length); |
119 | acpi_os_free(fadt.pointer); | 116 | acpi_os_free(fadt.pointer); |
120 | 117 | ||
121 | return_VALUE(res); | 118 | return res; |
122 | } | 119 | } |
123 | 120 | ||
124 | static int __init acpi_system_init(void) | 121 | static int __init acpi_system_init(void) |
@@ -127,10 +124,9 @@ static int __init acpi_system_init(void) | |||
127 | int error = 0; | 124 | int error = 0; |
128 | char *name; | 125 | char *name; |
129 | 126 | ||
130 | ACPI_FUNCTION_TRACE("acpi_system_init"); | ||
131 | 127 | ||
132 | if (acpi_disabled) | 128 | if (acpi_disabled) |
133 | return_VALUE(0); | 129 | return 0; |
134 | 130 | ||
135 | /* 'info' [R] */ | 131 | /* 'info' [R] */ |
136 | name = ACPI_SYSTEM_FILE_INFO; | 132 | name = ACPI_SYSTEM_FILE_INFO; |
@@ -158,7 +154,7 @@ static int __init acpi_system_init(void) | |||
158 | goto Error; | 154 | goto Error; |
159 | 155 | ||
160 | Done: | 156 | Done: |
161 | return_VALUE(error); | 157 | return error; |
162 | 158 | ||
163 | Error: | 159 | Error: |
164 | remove_proc_entry(ACPI_SYSTEM_FILE_FADT, acpi_root_dir); | 160 | remove_proc_entry(ACPI_SYSTEM_FILE_FADT, acpi_root_dir); |