ACPI: make acpi_create_platform_device() an external API
authorZhang Rui <rui.zhang@intel.com>
Fri, 14 Mar 2014 06:06:25 +0000 (14:06 +0800)
committerZhang Rui <rui.zhang@intel.com>
Fri, 10 Oct 2014 05:56:20 +0000 (13:56 +0800)
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/acpi/acpi_platform.c
drivers/acpi/internal.h
include/linux/acpi.h

index 2bf9082..a3c89a1 100644 (file)
@@ -113,3 +113,4 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev)
        kfree(resources);
        return pdev;
 }
+EXPORT_SYMBOL_GPL(acpi_create_platform_device);
index de47f9f..f221d1e 100644 (file)
@@ -169,13 +169,6 @@ static inline void suspend_nvs_restore(void) {}
 #endif
 
 /*--------------------------------------------------------------------------
-                               Platform bus support
-  -------------------------------------------------------------------------- */
-struct platform_device;
-
-struct platform_device *acpi_create_platform_device(struct acpi_device *adev);
-
-/*--------------------------------------------------------------------------
                                        Video
   -------------------------------------------------------------------------- */
 #if defined(CONFIG_ACPI_VIDEO) || defined(CONFIG_ACPI_VIDEO_MODULE)
index 807cbc4..2c24c2c 100644 (file)
@@ -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_modalias(struct device *, char *, int);
 
+struct platform_device *acpi_create_platform_device(struct acpi_device *);
 #define ACPI_PTR(_ptr) (_ptr)
 
 #else  /* !CONFIG_ACPI */