Commit e82e6f16 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'for-linus' of git://android.git.kernel.org/kernel/tegra

* '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
parents c98ece69 906c3b61
...@@ -257,7 +257,8 @@ static void tegra_gpio_irq_handler(unsigned int irq, struct irq_desc *desc) ...@@ -257,7 +257,8 @@ static void tegra_gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
void tegra_gpio_resume(void) void tegra_gpio_resume(void)
{ {
unsigned long flags; unsigned long flags;
int b, p, i; int b;
int p;
local_irq_save(flags); local_irq_save(flags);
...@@ -280,7 +281,8 @@ void tegra_gpio_resume(void) ...@@ -280,7 +281,8 @@ void tegra_gpio_resume(void)
void tegra_gpio_suspend(void) void tegra_gpio_suspend(void)
{ {
unsigned long flags; unsigned long flags;
int b, p, i; int b;
int p;
local_irq_save(flags); local_irq_save(flags);
for (b = 0; b < ARRAY_SIZE(tegra_gpio_banks); b++) { for (b = 0; b < ARRAY_SIZE(tegra_gpio_banks); b++) {
......
...@@ -1362,14 +1362,15 @@ static int tegra_clk_shared_bus_set_rate(struct clk *c, unsigned long rate) ...@@ -1362,14 +1362,15 @@ static int tegra_clk_shared_bus_set_rate(struct clk *c, unsigned long rate)
{ {
unsigned long flags; unsigned long flags;
int ret; int ret;
long new_rate = rate;
rate = clk_round_rate(c->parent, rate); new_rate = clk_round_rate(c->parent, new_rate);
if (rate < 0) if (new_rate < 0)
return rate; return new_rate;
spin_lock_irqsave(&c->parent->spinlock, flags); 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); ret = tegra_clk_shared_bus_update(c->parent);
spin_unlock_irqrestore(&c->parent->spinlock, flags); spin_unlock_irqrestore(&c->parent->spinlock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment