Skip to content

Commit

Permalink
omap2+: pm_bus: make functions used as pointers as static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nishanth Menon authored and Kevin Hilman committed Jan 7, 2011
1 parent f7c5cc4 commit b97c374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-omap2/pm_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <plat/omap-pm.h>

#ifdef CONFIG_PM_RUNTIME
int omap_pm_runtime_suspend(struct device *dev)
static int omap_pm_runtime_suspend(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
int r, ret = 0;
Expand All @@ -37,7 +37,7 @@ int omap_pm_runtime_suspend(struct device *dev)
return ret;
};

int omap_pm_runtime_resume(struct device *dev)
static int omap_pm_runtime_resume(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
int r;
Expand Down

0 comments on commit b97c374

Please sign in to comment.