diff options
author | Nishanth Menon <nm@ti.com> | 2011-01-04 15:07:14 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-01-07 16:33:08 -0500 |
commit | b97c374d8a44292c601146783aac61f3d5d1f46f (patch) | |
tree | 677e56b3f0d9734b405d2c08022a140953a9d0bb /arch/arm/mach-omap2/pm_bus.c | |
parent | f7c5cc456211da7d0b0aefd3886e57b313a0e00f (diff) |
omap2+: pm_bus: make functions used as pointers as static
omap_pm_runtime_suspend and omap_pm_runtime_resume are used
as function pointers and does not really need to be exposed
to the world.
Fixes sparse warnings:
arch/arm/mach-omap2/pm_bus.c:23:5: warning: symbol 'omap_pm_runtime_suspend' was not declared. Should it be static?
arch/arm/mach-omap2/pm_bus.c:40:5: warning: symbol 'omap_pm_runtime_resume' was not declared. Should it be static?
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm_bus.c')
-rw-r--r-- | arch/arm/mach-omap2/pm_bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/pm_bus.c b/arch/arm/mach-omap2/pm_bus.c index 784989f8f2f5..5acd2ab298b1 100644 --- a/arch/arm/mach-omap2/pm_bus.c +++ b/arch/arm/mach-omap2/pm_bus.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <plat/omap-pm.h> | 20 | #include <plat/omap-pm.h> |
21 | 21 | ||
22 | #ifdef CONFIG_PM_RUNTIME | 22 | #ifdef CONFIG_PM_RUNTIME |
23 | int omap_pm_runtime_suspend(struct device *dev) | 23 | static int omap_pm_runtime_suspend(struct device *dev) |
24 | { | 24 | { |
25 | struct platform_device *pdev = to_platform_device(dev); | 25 | struct platform_device *pdev = to_platform_device(dev); |
26 | int r, ret = 0; | 26 | int r, ret = 0; |
@@ -37,7 +37,7 @@ int omap_pm_runtime_suspend(struct device *dev) | |||
37 | return ret; | 37 | return ret; |
38 | }; | 38 | }; |
39 | 39 | ||
40 | int omap_pm_runtime_resume(struct device *dev) | 40 | static int omap_pm_runtime_resume(struct device *dev) |
41 | { | 41 | { |
42 | struct platform_device *pdev = to_platform_device(dev); | 42 | struct platform_device *pdev = to_platform_device(dev); |
43 | int r; | 43 | int r; |