ARM: tegra: fix compilation error on loki
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 18 Sep 2013 13:53:29 +0000 (18:53 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Fri, 27 Sep 2013 02:46:16 +0000 (19:46 -0700)
commit170d2441ee71391a969e8aab7a1ffa7323e7c0e7
treed63df8d4fd9ed023cde159ff29c4ed6f031fb6e3
parent540ae0dbd199602691ef13e63c2b545a730aba6a
ARM: tegra: fix compilation error on loki

Fix compilation error on board-loki-sensor.c:
/**
/board-loki-sensors.c:655:15: error: variable 'loki_fan_therm_est_device_p2548' has initializer but incomplete type
/board-loki-sensors.c:656:2: error: unknown field 'name' specified in initializer
/board-loki-sensors.c:656:2: warning: excess elements in struct initializer [enabled by default]
/board-loki-sensors.c:656:2: warning: (near initialization for 'loki_fan_therm_est_device_p2548') [enabled by default]
/board-loki-sensors.c:657:2: error: unknown field 'id' specified in initializer
/board-loki-sensors.c:657:2: warning: excess elements in struct initializer [enabled by default]
/board-loki-sensors.c:657:2: warning: (near initialization for 'loki_fan_therm_est_device_p2548') [enabled by default]
/board-loki-sensors.c:658:2: error: unknown field 'num_resources' specified in initializer
/board-loki-sensors.c:658:2: warning: excess elements in struct initializer [enabled by default]
/board-loki-sensors.c:658:2: warning: (near initialization for 'loki_fan_therm_est_device_p2548') [enabled by default]
/board-loki-sensors.c:659:2: error: unknown field 'dev' specified in initializer
/board-loki-sensors.c:659:2: error: extra brace group at end of initializer
/board-loki-sensors.c:659:2: error: (near initialization for 'loki_fan_therm_est_device_p2548')
/board-loki-sensors.c:661:2: warning: excess elements in struct initializer [enabled by default]
/board-loki-sensors.c:661:2: warning: (near initialization for 'loki_fan_therm_est_device_p2548') [enabled by default]
/board-loki-sensors.c: In function 'loki_fan_est_init':
/board-loki-sensors.c:669:2: error: implicit declaration of function 'platform_device_register' [-Werror=implicit-function-declaration]
/board-loki-sensors.c: At top level:
/board-loki-sensors.c:405:30: warning: 'loki_i2c_board_info_e1823' defined but not used [-Wunused-variable]
cc1: some warnings being treated as errors
**/

Change-Id: I0dd383be1b365f953b4040e0a037f32f2b4223f4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/276307
arch/arm/mach-tegra/board-loki-sensors.c