aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/resources/rsxface.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/resources/rsxface.c')
-rw-r--r--drivers/acpi/resources/rsxface.c29
1 files changed, 13 insertions, 16 deletions
diff --git a/drivers/acpi/resources/rsxface.c b/drivers/acpi/resources/rsxface.c
index 2e1bc71acd94..b3feebbd8ca2 100644
--- a/drivers/acpi/resources/rsxface.c
+++ b/drivers/acpi/resources/rsxface.c
@@ -41,8 +41,6 @@
41 * POSSIBILITY OF SUCH DAMAGES. 41 * POSSIBILITY OF SUCH DAMAGES.
42 */ 42 */
43 43
44#include <linux/module.h>
45
46#include <acpi/acpi.h> 44#include <acpi/acpi.h>
47#include <acpi/acresrc.h> 45#include <acpi/acresrc.h>
48 46
@@ -118,6 +116,8 @@ acpi_get_irq_routing_table(acpi_handle device_handle,
118 return_ACPI_STATUS(status); 116 return_ACPI_STATUS(status);
119} 117}
120 118
119ACPI_EXPORT_SYMBOL(acpi_get_irq_routing_table)
120
121/******************************************************************************* 121/*******************************************************************************
122 * 122 *
123 * FUNCTION: acpi_get_current_resources 123 * FUNCTION: acpi_get_current_resources
@@ -141,7 +141,6 @@ acpi_get_irq_routing_table(acpi_handle device_handle,
141 * the object indicated by the passed device_handle. 141 * the object indicated by the passed device_handle.
142 * 142 *
143 ******************************************************************************/ 143 ******************************************************************************/
144
145acpi_status 144acpi_status
146acpi_get_current_resources(acpi_handle device_handle, 145acpi_get_current_resources(acpi_handle device_handle,
147 struct acpi_buffer *ret_buffer) 146 struct acpi_buffer *ret_buffer)
@@ -169,8 +168,9 @@ acpi_get_current_resources(acpi_handle device_handle,
169 return_ACPI_STATUS(status); 168 return_ACPI_STATUS(status);
170} 169}
171 170
172EXPORT_SYMBOL(acpi_get_current_resources); 171ACPI_EXPORT_SYMBOL(acpi_get_current_resources)
173 172
173#ifdef ACPI_FUTURE_USAGE
174/******************************************************************************* 174/*******************************************************************************
175 * 175 *
176 * FUNCTION: acpi_get_possible_resources 176 * FUNCTION: acpi_get_possible_resources
@@ -191,8 +191,6 @@ EXPORT_SYMBOL(acpi_get_current_resources);
191 * and the value of ret_buffer is undefined. 191 * and the value of ret_buffer is undefined.
192 * 192 *
193 ******************************************************************************/ 193 ******************************************************************************/
194
195#ifdef ACPI_FUTURE_USAGE
196acpi_status 194acpi_status
197acpi_get_possible_resources(acpi_handle device_handle, 195acpi_get_possible_resources(acpi_handle device_handle,
198 struct acpi_buffer *ret_buffer) 196 struct acpi_buffer *ret_buffer)
@@ -220,7 +218,7 @@ acpi_get_possible_resources(acpi_handle device_handle,
220 return_ACPI_STATUS(status); 218 return_ACPI_STATUS(status);
221} 219}
222 220
223EXPORT_SYMBOL(acpi_get_possible_resources); 221ACPI_EXPORT_SYMBOL(acpi_get_possible_resources)
224#endif /* ACPI_FUTURE_USAGE */ 222#endif /* ACPI_FUTURE_USAGE */
225 223
226/******************************************************************************* 224/*******************************************************************************
@@ -241,7 +239,6 @@ EXPORT_SYMBOL(acpi_get_possible_resources);
241 * each resource in the list. 239 * each resource in the list.
242 * 240 *
243 ******************************************************************************/ 241 ******************************************************************************/
244
245acpi_status 242acpi_status
246acpi_walk_resources(acpi_handle device_handle, 243acpi_walk_resources(acpi_handle device_handle,
247 char *name, 244 char *name,
@@ -313,11 +310,11 @@ acpi_walk_resources(acpi_handle device_handle,
313 resource->length); 310 resource->length);
314 } 311 }
315 312
316 ACPI_MEM_FREE(buffer.pointer); 313 ACPI_FREE(buffer.pointer);
317 return_ACPI_STATUS(status); 314 return_ACPI_STATUS(status);
318} 315}
319 316
320EXPORT_SYMBOL(acpi_walk_resources); 317ACPI_EXPORT_SYMBOL(acpi_walk_resources)
321 318
322/******************************************************************************* 319/*******************************************************************************
323 * 320 *
@@ -336,7 +333,6 @@ EXPORT_SYMBOL(acpi_walk_resources);
336 * the buffer pointed to by the in_buffer variable. 333 * the buffer pointed to by the in_buffer variable.
337 * 334 *
338 ******************************************************************************/ 335 ******************************************************************************/
339
340acpi_status 336acpi_status
341acpi_set_current_resources(acpi_handle device_handle, 337acpi_set_current_resources(acpi_handle device_handle,
342 struct acpi_buffer *in_buffer) 338 struct acpi_buffer *in_buffer)
@@ -356,7 +352,7 @@ acpi_set_current_resources(acpi_handle device_handle,
356 return_ACPI_STATUS(status); 352 return_ACPI_STATUS(status);
357} 353}
358 354
359EXPORT_SYMBOL(acpi_set_current_resources); 355ACPI_EXPORT_SYMBOL(acpi_set_current_resources)
360 356
361/****************************************************************************** 357/******************************************************************************
362 * 358 *
@@ -375,7 +371,6 @@ EXPORT_SYMBOL(acpi_set_current_resources);
375 * addresses. 371 * addresses.
376 * 372 *
377 ******************************************************************************/ 373 ******************************************************************************/
378
379acpi_status 374acpi_status
380acpi_resource_to_address64(struct acpi_resource *resource, 375acpi_resource_to_address64(struct acpi_resource *resource,
381 struct acpi_resource_address64 *out) 376 struct acpi_resource_address64 *out)
@@ -417,7 +412,7 @@ acpi_resource_to_address64(struct acpi_resource *resource,
417 return (AE_OK); 412 return (AE_OK);
418} 413}
419 414
420EXPORT_SYMBOL(acpi_resource_to_address64); 415ACPI_EXPORT_SYMBOL(acpi_resource_to_address64)
421 416
422/******************************************************************************* 417/*******************************************************************************
423 * 418 *
@@ -437,7 +432,6 @@ EXPORT_SYMBOL(acpi_resource_to_address64);
437 * UUID subtype. Returns a struct acpi_resource of type Vendor. 432 * UUID subtype. Returns a struct acpi_resource of type Vendor.
438 * 433 *
439 ******************************************************************************/ 434 ******************************************************************************/
440
441acpi_status 435acpi_status
442acpi_get_vendor_resource(acpi_handle device_handle, 436acpi_get_vendor_resource(acpi_handle device_handle,
443 char *name, 437 char *name,
@@ -469,6 +463,8 @@ acpi_get_vendor_resource(acpi_handle device_handle,
469 return (info.status); 463 return (info.status);
470} 464}
471 465
466ACPI_EXPORT_SYMBOL(acpi_get_vendor_resource)
467
472/******************************************************************************* 468/*******************************************************************************
473 * 469 *
474 * FUNCTION: acpi_rs_match_vendor_resource 470 * FUNCTION: acpi_rs_match_vendor_resource
@@ -480,7 +476,6 @@ acpi_get_vendor_resource(acpi_handle device_handle,
480 * DESCRIPTION: Match a vendor resource via the ACPI 3.0 UUID 476 * DESCRIPTION: Match a vendor resource via the ACPI 3.0 UUID
481 * 477 *
482 ******************************************************************************/ 478 ******************************************************************************/
483
484static acpi_status 479static acpi_status
485acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context) 480acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context)
486{ 481{
@@ -528,3 +523,5 @@ acpi_rs_match_vendor_resource(struct acpi_resource *resource, void *context)
528 info->status = AE_OK; 523 info->status = AE_OK;
529 return (AE_CTRL_TERMINATE); 524 return (AE_CTRL_TERMINATE);
530} 525}
526
527ACPI_EXPORT_SYMBOL(acpi_rs_match_vendor_resource)