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 2bf9082f7523cce812780ae17b712ce6a48778f9..a3c89a1bcf545bd330ba04a0a1955a5d81837e09 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 de47f9f746c91a3f8554879c8556ff53a09d8e70..f221d1eb594a3db0be7688317f998e804395806d 100644 (file)
@@ -168,13 +168,6 @@ static inline int suspend_nvs_save(void) { return 0; }
 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
   -------------------------------------------------------------------------- */
index 807cbc46d73e0eda897c3e1a3aa2df7ae9519c81..2c24c2c1be458ab6f8638ee1056d334ab8fa3102 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 */