Commit 083bf668 authored by Zhang Rui's avatar Zhang Rui

ACPI: make acpi_create_platform_device() an external API

Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 3230bbfc
...@@ -113,3 +113,4 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev) ...@@ -113,3 +113,4 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev)
kfree(resources); kfree(resources);
return pdev; return pdev;
} }
EXPORT_SYMBOL_GPL(acpi_create_platform_device);
...@@ -168,13 +168,6 @@ static inline int suspend_nvs_save(void) { return 0; } ...@@ -168,13 +168,6 @@ static inline int suspend_nvs_save(void) { return 0; }
static inline void suspend_nvs_restore(void) {} static inline void suspend_nvs_restore(void) {}
#endif #endif
/*--------------------------------------------------------------------------
Platform bus support
-------------------------------------------------------------------------- */
struct platform_device;
struct platform_device *acpi_create_platform_device(struct acpi_device *adev);
/*-------------------------------------------------------------------------- /*--------------------------------------------------------------------------
Video Video
-------------------------------------------------------------------------- */ -------------------------------------------------------------------------- */
......
...@@ -432,6 +432,7 @@ static inline bool acpi_driver_match_device(struct device *dev, ...@@ -432,6 +432,7 @@ static inline bool acpi_driver_match_device(struct device *dev,
int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *); int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *);
int acpi_device_modalias(struct device *, char *, int); int acpi_device_modalias(struct device *, char *, int);
struct platform_device *acpi_create_platform_device(struct acpi_device *);
#define ACPI_PTR(_ptr) (_ptr) #define ACPI_PTR(_ptr) (_ptr)
#else /* !CONFIG_ACPI */ #else /* !CONFIG_ACPI */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment