Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8309ef6 authored by Colin Cross's avatar Colin Cross
Browse files

ARM: tegra: gpio: Fix unused variable warnings



Change b0f18eda
(arm: tegra: Remove unused bogus irq enable/disable magic)
introduces warnings:
arch/arm/mach-tegra/gpio.c: In function 'tegra_gpio_resume':
arch/arm/mach-tegra/gpio.c:260: warning: unused variable 'i'
arch/arm/mach-tegra/gpio.c: In function 'tegra_gpio_suspend':
arch/arm/mach-tegra/gpio.c:283: warning: unused variable 'i'

Fix them, and fix a coding style issue on the same lines.

Signed-off-by: default avatarColin Cross <ccross@android.com>
Acked-by: default avatarErik Gilling <konkers@konkers.net>
parent 0ce790e7
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -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)
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++) {