ARM: tegra: remove warnings on board roth
Philip Rakity [Thu, 5 Sep 2013 12:33:51 +0000 (13:33 +0100)]
remove unused variables
move definitions to before code to avoid ISO error

Change-Id: Ied020a11a3b01caa7d091a0c1fb8d25adc2071f0
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/270821
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit eb3c3d4e1f1cbb5e7b1163bbe04a9f31214ec99b)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

arch/arm/mach-tegra/board-roth-leds.c
arch/arm/mach-tegra/board-roth-sensors.c
arch/arm/mach-tegra/board-roth.c

index 0737973..68d2b18 100644 (file)
@@ -94,7 +94,6 @@ static struct platform_device roth_leds_gpio_device = {
 
 int __init roth_led_init(void)
 {
-       int err;
 #ifdef CONFIG_LEDS_PWM
        platform_device_register(&roth_leds_pwm_device);
 #else
index df5032a..30eef5e 100644 (file)
@@ -49,8 +49,6 @@
 #include "tegra-board-id.h"
 #include "dvfs.h"
 
-static struct board_info board_info;
-
 static struct throttle_table tj_throttle_table[] = {
        /* CPU_THROT_LOW cannot be used by other than CPU */
        /*      CPU,  C2BUS,  C3BUS,   SCLK,    EMC   */
@@ -279,12 +277,6 @@ static int roth_nct1008_init(void)
        return ret;
 }
 
-static struct i2c_board_info __initdata bq20z45_pdata[] = {
-       {
-               I2C_BOARD_INFO("sbs-battery", 0x0B),
-       },
-};
-
 #ifdef CONFIG_TEGRA_SKIN_THROTTLE
 static struct thermal_trip_info skin_trips[] = {
        {
index b45f75b..967b646 100644 (file)
@@ -611,9 +611,9 @@ struct spi_board_info rm31080a_roth_spi_board[1] = {
 static int __init roth_touch_init(void)
 {
        struct board_info board_info;
+       int touch_panel_id = tegra_get_touch_panel_id();
 
        tegra_get_board_info(&board_info);
-       int touch_panel_id = tegra_get_touch_panel_id();
        if (touch_panel_id == PANEL_TPK ||
                        touch_panel_id == PANEL_WINTEK) {
                int err;