Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272640
b: refs/heads/master
c: 784278e
h: refs/heads/master
v: v3
  • Loading branch information
Olof Johansson committed Oct 13, 2011
1 parent 3d05b2e commit 0131bb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b28fba2a4e631de99b25a9d4b2d1ba1c65f86f53
refs/heads/master: 784278e116d6243f2588e28d2404425858df65b4
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-tegra/include/mach/powergate.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

int tegra_powergate_power_on(int id);
int tegra_powergate_power_off(int id);
bool tegra_powergate_is_powered(int id);
int tegra_powergate_remove_clamping(int id);

/* Must be called with clk disabled, and returns with clk enabled */
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/arm/mach-tegra/powergate.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,11 @@ int tegra_powergate_power_off(int id)
return tegra_powergate_set(id, false);
}

bool tegra_powergate_is_powered(int id)
static bool tegra_powergate_is_powered(int id)
{
u32 status;

if (id < 0 || id >= TEGRA_NUM_POWERGATE)
return -EINVAL;
WARN_ON(id < 0 || id >= TEGRA_NUM_POWERGATE);

status = pmc_read(PWRGATE_STATUS) & (1 << id);
return !!status;
Expand Down

0 comments on commit 0131bb6

Please sign in to comment.