diff options
author | Zhang Rui <rui.zhang@intel.com> | 2014-03-14 02:06:25 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2014-10-10 01:56:20 -0400 |
commit | 083bf668cb70e47b84db64856606e94beac87f01 (patch) | |
tree | b48a83440e2b76c58af3ce172cd8575ba61637d4 | |
parent | 3230bbfce8a9270acc77fafd0d9ff90e94f28993 (diff) |
ACPI: make acpi_create_platform_device() an external API
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-rw-r--r-- | drivers/acpi/acpi_platform.c | 1 | ||||
-rw-r--r-- | drivers/acpi/internal.h | 7 | ||||
-rw-r--r-- | include/linux/acpi.h | 1 |
3 files changed, 2 insertions, 7 deletions
diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c index 2bf9082f7523..a3c89a1bcf54 100644 --- a/drivers/acpi/acpi_platform.c +++ b/drivers/acpi/acpi_platform.c | |||
@@ -113,3 +113,4 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev) | |||
113 | kfree(resources); | 113 | kfree(resources); |
114 | return pdev; | 114 | return pdev; |
115 | } | 115 | } |
116 | EXPORT_SYMBOL_GPL(acpi_create_platform_device); | ||
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index de47f9f746c9..f221d1eb594a 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h | |||
@@ -169,13 +169,6 @@ static inline void suspend_nvs_restore(void) {} | |||
169 | #endif | 169 | #endif |
170 | 170 | ||
171 | /*-------------------------------------------------------------------------- | 171 | /*-------------------------------------------------------------------------- |
172 | Platform bus support | ||
173 | -------------------------------------------------------------------------- */ | ||
174 | struct platform_device; | ||
175 | |||
176 | struct platform_device *acpi_create_platform_device(struct acpi_device *adev); | ||
177 | |||
178 | /*-------------------------------------------------------------------------- | ||
179 | Video | 172 | Video |
180 | -------------------------------------------------------------------------- */ | 173 | -------------------------------------------------------------------------- */ |
181 | #if defined(CONFIG_ACPI_VIDEO) || defined(CONFIG_ACPI_VIDEO_MODULE) | 174 | #if defined(CONFIG_ACPI_VIDEO) || defined(CONFIG_ACPI_VIDEO_MODULE) |
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 807cbc46d73e..2c24c2c1be45 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -432,6 +432,7 @@ static inline bool acpi_driver_match_device(struct device *dev, | |||
432 | int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *); | 432 | int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *); |
433 | int acpi_device_modalias(struct device *, char *, int); | 433 | int acpi_device_modalias(struct device *, char *, int); |
434 | 434 | ||
435 | struct platform_device *acpi_create_platform_device(struct acpi_device *); | ||
435 | #define ACPI_PTR(_ptr) (_ptr) | 436 | #define ACPI_PTR(_ptr) (_ptr) |
436 | 437 | ||
437 | #else /* !CONFIG_ACPI */ | 438 | #else /* !CONFIG_ACPI */ |