Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
083bf668
Commit
083bf668
authored
Mar 14, 2014
by
Zhang Rui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: make acpi_create_platform_device() an external API
Signed-off-by:
Zhang Rui
<
rui.zhang@intel.com
>
parent
3230bbfc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
7 deletions
+2
-7
drivers/acpi/acpi_platform.c
drivers/acpi/acpi_platform.c
+1
-0
drivers/acpi/internal.h
drivers/acpi/internal.h
+0
-7
include/linux/acpi.h
include/linux/acpi.h
+1
-0
No files found.
drivers/acpi/acpi_platform.c
View file @
083bf668
...
@@ -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
);
drivers/acpi/internal.h
View file @
083bf668
...
@@ -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
-------------------------------------------------------------------------- */
-------------------------------------------------------------------------- */
...
...
include/linux/acpi.h
View file @
083bf668
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment