]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ARM: tegra: remove warnings on board roth
authorPhilip Rakity <prakity@nvidia.com>
Thu, 5 Sep 2013 12:33:51 +0000 (13:33 +0100)
committerAjay Nandakumar <anandakumarm@nvidia.com>
Tue, 1 Oct 2013 10:46:45 +0000 (16:16 +0530)
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 073797348af3ce8c55f2a017c3bc12f73bd7bdac..68d2b180038b49fc6311f68d944c5a6c41a3a9b9 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 df5032a8e1cc26a26e07f6168e2f240c62a36932..30eef5efb1168cd09bcc8b6cf0292b38c9dac1dc 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 b45f75b228f9cc93d1f517e1cb795777be6c885d..967b646015c443f0a2acdba664f68f6d37819952 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;