ACPI: make acpi_create_platform_device() an external API
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
This commit is contained in:
@@ -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; }
|
|||||||
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,
|
|||||||
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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user