Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://android.git.kernel.org/kernel/tegra
Browse files Browse the repository at this point in the history
* 'for-linus' of git://android.git.kernel.org/kernel/tegra:
  arm: tegra: fix error check in tegra2_clocks.c
  ARM: tegra: gpio: Fix unused variable warnings
  • Loading branch information
Linus Torvalds committed Apr 16, 2011
2 parents c98ece6 + 906c3b6 commit e82e6f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions arch/arm/mach-tegra/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ static void tegra_gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
void tegra_gpio_resume(void)
{
unsigned long flags;
int b, p, i;
int b;
int p;

local_irq_save(flags);

Expand All @@ -280,7 +281,8 @@ void tegra_gpio_resume(void)
void tegra_gpio_suspend(void)
{
unsigned long flags;
int b, p, i;
int b;
int p;

local_irq_save(flags);
for (b = 0; b < ARRAY_SIZE(tegra_gpio_banks); b++) {
Expand Down
9 changes: 5 additions & 4 deletions arch/arm/mach-tegra/tegra2_clocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1362,14 +1362,15 @@ static int tegra_clk_shared_bus_set_rate(struct clk *c, unsigned long rate)
{
unsigned long flags;
int ret;
long new_rate = rate;

rate = clk_round_rate(c->parent, rate);
if (rate < 0)
return rate;
new_rate = clk_round_rate(c->parent, new_rate);
if (new_rate < 0)
return new_rate;

spin_lock_irqsave(&c->parent->spinlock, flags);

c->u.shared_bus_user.rate = rate;
c->u.shared_bus_user.rate = new_rate;
ret = tegra_clk_shared_bus_update(c->parent);

spin_unlock_irqrestore(&c->parent->spinlock, flags);
Expand Down

0 comments on commit e82e6f1

Please sign in to comment.