Skip to content

Commit

Permalink
ACPI: make acpi_create_platform_device() an external API
Browse files Browse the repository at this point in the history
Signed-off-by: Zhang Rui <[email protected]>
  • Loading branch information
zhang-rui committed Oct 10, 2014
1 parent 3230bbf commit 083bf66
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions drivers/acpi/acpi_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
7 changes: 0 additions & 7 deletions drivers/acpi/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------------------------------------------------------------------- */
Expand Down
1 change: 1 addition & 0 deletions include/linux/acpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 083bf66

Please sign in to comment.