diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-01-16 19:59:38 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-01-16 19:59:38 -0500 |
commit | bc411b8a643825b634916f9ba167546a88a0ac28 (patch) | |
tree | 9243b5c8139391e003e31bea845a59975aeced3e /include/linux/acpi.h | |
parent | 8341ecc9f4eb7513951bd1986d78185a11ac6d4e (diff) | |
parent | b9f73067f32531db608e469a9ad20ce631e34550 (diff) |
Merge branch 'acpi-modules'
* acpi-modules:
platform: introduce OF style 'modalias' support for platform bus
ACPI: fix module autoloading for ACPI enumerated devices
ACPI: add module autoloading support for ACPI enumerated devices
ACPI: fix create_modalias() return value handling
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 3e3247d95fd9..1151a1dcfe41 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -416,6 +416,9 @@ static inline bool acpi_driver_match_device(struct device *dev, | |||
416 | return !!acpi_match_device(drv->acpi_match_table, dev); | 416 | return !!acpi_match_device(drv->acpi_match_table, dev); |
417 | } | 417 | } |
418 | 418 | ||
419 | int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *); | ||
420 | int acpi_device_modalias(struct device *, char *, int); | ||
421 | |||
419 | #define ACPI_PTR(_ptr) (_ptr) | 422 | #define ACPI_PTR(_ptr) (_ptr) |
420 | 423 | ||
421 | #else /* !CONFIG_ACPI */ | 424 | #else /* !CONFIG_ACPI */ |
@@ -495,6 +498,18 @@ static inline bool acpi_driver_match_device(struct device *dev, | |||
495 | return false; | 498 | return false; |
496 | } | 499 | } |
497 | 500 | ||
501 | static inline int acpi_device_uevent_modalias(struct device *dev, | ||
502 | struct kobj_uevent_env *env) | ||
503 | { | ||
504 | return -ENODEV; | ||
505 | } | ||
506 | |||
507 | static inline int acpi_device_modalias(struct device *dev, | ||
508 | char *buf, int size) | ||
509 | { | ||
510 | return -ENODEV; | ||
511 | } | ||
512 | |||
498 | #define ACPI_PTR(_ptr) (NULL) | 513 | #define ACPI_PTR(_ptr) (NULL) |
499 | 514 | ||
500 | #endif /* !CONFIG_ACPI */ | 515 | #endif /* !CONFIG_ACPI */ |