oweals/u-boot.git
13 years agoi2c: sh: Add support I2C for Renesas SH
Nobuhiro Iwamatsu [Mon, 14 Nov 2011 18:27:04 +0000 (18:27 +0000)]
i2c: sh: Add support I2C for Renesas SH

This supports I2C of Renesas SH.
I tested on SH7724.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
CC: Heiko Schocher <hs@denx.de>
13 years agoFix clash between IH_ARCH_NDS32 and IH_ARCH_SANDBOX
Stefan Kristiansson [Mon, 21 Nov 2011 23:43:58 +0000 (23:43 +0000)]
Fix clash between IH_ARCH_NDS32 and IH_ARCH_SANDBOX

NDS32 and SANDBOX architecture were sharing the same IH_ARCH number

Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Acked-by: Macpaul Lin <macpaul@andestech.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
13 years agonds32/ag101: clean up for SoC related code
Macpaul Lin [Wed, 23 Nov 2011 05:56:50 +0000 (13:56 +0800)]
nds32/ag101: clean up for SoC related code

Remove unneccessary codes.
1. Clean up for cpu related code.
2. Clean up for timer related code.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agotools/env: use lib/crc32.c directly
Andreas Bießmann [Mon, 17 Oct 2011 22:11:12 +0000 (22:11 +0000)]
tools/env: use lib/crc32.c directly

Instead of linking the file into $(obj) tree use directly the source file.
This also prevents littered source tree if building not out-of-tree.

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agosandbox: Fix warnings in hashtable.c
Simon Glass [Mon, 21 Nov 2011 19:04:23 +0000 (19:04 +0000)]
sandbox: Fix warnings in hashtable.c

This fixes a few printf() strings for size_t which are missing the 'z'
modifier.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoImprove Power Management in SMC911X driver.
bertrand.cachet@heig-vd.ch [Tue, 15 Nov 2011 03:40:53 +0000 (03:40 +0000)]
Improve Power Management in SMC911X driver.

device is already in *normal* (D0) mode => it doesn't need to be wake-up.

With this patch, we only wake-up (writing on TEST_BYTE register) if PM_MODE
bits of PM_CTRL register is in sleep (D1/D2) mode.

Signed-off-by: Bertrand Cachet <bertrand.cachet@heig-vd.ch>
13 years agoenv: clean env_common.c checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:14:11 +0000 (01:14 +0000)]
env: clean env_common.c checkpatch and code style

Cleanup the env_common.c checkpatch warnings, errors and coding style.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: clean env_nand.c checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:14:10 +0000 (01:14 +0000)]
env: clean env_nand.c checkpatch and code style

Cleanup the env_nand.c checkpatch warnings, errors and coding style.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: clean env_flash.c checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:14:09 +0000 (01:14 +0000)]
env: clean env_flash.c checkpatch and code style

Cleanup the env_flash.c checkpatch warnings, errors and coding style.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: clean env_sf.c checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:14:08 +0000 (01:14 +0000)]
env: clean env_sf.c checkpatch and code style

Cleanup the env_sf.c checkpatch warnings, errors and coding style.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: clean env_eeprom.c checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:14:07 +0000 (01:14 +0000)]
env: clean env_eeprom.c checkpatch and code style

Cleanup the env_eeprom.c checkpatch warnings, errors and coding style.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: clean env_embedded.c checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:14:06 +0000 (01:14 +0000)]
env: clean env_embedded.c checkpatch and code style

Cleanup the env_embedded.c checkpatch warnings, errors and coding style.
There is one error left though:
 ERROR: Macros with multiple statements should be enclosed in a do - while loop
 #79: FILE: u-boot/common/env_embedded.c:79:
 +#define GEN_ABS(name, value)                   \
 +       asm(".globl " GEN_SYMNAME(name));       \
 +       GEN_SET_VALUE(name, value)

 total: 1 errors, 0 warnings, 213 lines checked

We cannot enclose that statement in a do - while loop,
because these are a global assembly declarations.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: clean env_mmc.c checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:14:05 +0000 (01:14 +0000)]
env: clean env_mmc.c checkpatch and code style

Cleanup the env_mmc.c checkpatch warnings, errors and coding style.
Simplify env_relocate_spec() function implementation.
Also mark internal functions as static.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: clean env_nvram.c checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:14:04 +0000 (01:14 +0000)]
env: clean env_nvram.c checkpatch and code style

Cleanup the env_nvram.c checkpatch warnings, errors and coding style.
There are 2 wanring left about the extern used in c file:
 WARNING: externs should be avoided in .c files
 #53: FILE: env_nvram.c:53:
 +extern void *nvram_read(void *dest, const long src, size_t count);

 WARNING: externs should be avoided in .c files
 #54: FILE: env_nvram.c:54:
 +extern void nvram_write(long dest, const void *src, size_t count);

 total: 0 errors, 2 warnings, 138 lines checked

There is no common nvram header file to use instead of the externs.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: clean env_onenand.c checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:14:03 +0000 (01:14 +0000)]
env: clean env_onenand.c checkpatch and code style

Cleanup the env_onenand.c checkpatch warnings, errors and coding style.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: clean env_dataflash.c checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:14:02 +0000 (01:14 +0000)]
env: clean env_dataflash.c checkpatch and code style

Cleanup the env_dataflash.c checkpatch warnings, errors
and coding style.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: clean env_mgdisk.c checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:14:01 +0000 (01:14 +0000)]
env: clean env_mgdisk.c checkpatch and code style

Cleanup the env_mgdisk.c checkpatch warnings, errors
and coding style.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: clean env_nowhere.c checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:14:00 +0000 (01:14 +0000)]
env: clean env_nowhere.c checkpatch and code style

Cleanup the env_nowhere.c checkpatch warnings, errors and coding style.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: clean cmd_nvedit.c checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:13:59 +0000 (01:13 +0000)]
env: clean cmd_nvedit.c checkpatch and code style

Cleanup the cmd_nvedit.c checkpatch warnings, errors and coding style.
There are 10 wanrings left about the simple_strtoul() function:
 WARNING: simple_strtoul is obsolete, use kstrtoul instead
 #359: FILE: cmd_nvedit.c:359:
 + load_addr = simple_strtoul(argv[2], NULL, 16);

 ...

 total: 0 errors, 10 warnings, 1043 lines checked

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: move extern environment[] to environment.h
Igor Grinberg [Thu, 17 Nov 2011 06:07:23 +0000 (06:07 +0000)]
env: move extern environment[] to environment.h

Extract all extern declarations for environment out of c files
into the environment.h header.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agoenv: move extern default_environment[] to environment.h
Igor Grinberg [Mon, 7 Nov 2011 01:13:57 +0000 (01:13 +0000)]
env: move extern default_environment[] to environment.h

Extract all extern declarations for default_environment[] out of c files
into the environment.h header.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Cc: Stefan Roese <sr@denx.de>
Acked-by: Stefan Roese <sr@denx.de>
13 years agocommon: move extern char console_buffer[] to common.h
Igor Grinberg [Mon, 7 Nov 2011 01:13:56 +0000 (01:13 +0000)]
common: move extern char console_buffer[] to common.h

Extract all extern declarations for console_buffer[] out of c files into
the common.h header.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Cc: Frank Gottschling <fgottschling@eltec.de>
Cc: Murray Jensen <Murray.Jensen@csiro.au>
13 years agoenv: clean environment.h checkpatch and code style
Igor Grinberg [Mon, 7 Nov 2011 01:13:55 +0000 (01:13 +0000)]
env: clean environment.h checkpatch and code style

Though one warning left:
 WARNING: do not add new typedefs
 #149: FILE: u-boot/include/environment.h:149:
 +typedef struct environment_s {

 total: 0 errors, 1 warnings, 181 lines checked

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
13 years agonet: rtl8109: drop unused !NET_MULTI driver
Mike Frysinger [Wed, 26 Oct 2011 00:17:15 +0000 (00:17 +0000)]
net: rtl8109: drop unused !NET_MULTI driver

No one uses this driver, and it isn't converted to the NET_MULTI
framework (which we dropped recently), so drop this driver too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoFix warnings in cmd_nvedit.c
Simon Glass [Fri, 4 Nov 2011 06:42:36 +0000 (06:42 +0000)]
Fix warnings in cmd_nvedit.c

This printf() string should be %ld now that uintptr_t is defined
as long. Also fix a size_t error.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agoDefine uintptr_t as long int to simplify printf() format strings
Simon Glass [Fri, 4 Nov 2011 06:42:35 +0000 (06:42 +0000)]
Define uintptr_t as long int to simplify printf() format strings

If uintptr_t can be either an unsigned int or an unsigned long int, it is
tricky to use it in a printf() format string. This changes it to
unsigned long int consistently. This should do the right thing on both
32-bit and 64-bit architectures.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
13 years agonew tool mkenvimage: generates an env image from an arbitrary config file
David Wagner [Mon, 26 Sep 2011 03:26:34 +0000 (03:26 +0000)]
new tool mkenvimage: generates an env image from an arbitrary config file

This tool takes a key=value configuration file (same as would a `printenv' show)
and generates the corresponding environment image, ready to be flashed.

use case: flash the environment with an external tool

Signed-off-by: David Wagner <david.wagner@free-electrons.com>
Acked-by; Mike Frysinger <vapier@gentoo.org>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 years agosmsc95xx: Debug message cleanup
Wolfgang Grandegger [Mon, 14 Nov 2011 23:19:15 +0000 (23:19 +0000)]
smsc95xx: Debug message cleanup

Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Wolfgang Grandegger <wg@denx.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Simon Glass <sjg@chromium.org>
13 years agosmsc95xx: Fix MAC address programming
Wolfgang Grandegger [Mon, 14 Nov 2011 23:19:14 +0000 (23:19 +0000)]
smsc95xx: Fix MAC address programming

Commit 79ad54400932d6484178a372fb3b659e3437473b broke MAC address
programming in the SMSC95xx register set.

Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Wolfgang Grandegger <wg@denx.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Simon Glass <sjg@chromium.org>
13 years agoMerge branch 'sr@denx.de' of git://git.denx.de/u-boot-staging
Wolfgang Denk [Mon, 21 Nov 2011 21:11:05 +0000 (22:11 +0100)]
Merge branch 'sr@denx.de' of git://git.denx.de/u-boot-staging

* 'sr@denx.de' of git://git.denx.de/u-boot-staging:
  Makefile: Add the missing dependency for spl target
  gpio: Adapt PCA9698 to standard GPIO API

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-blackfin
Wolfgang Denk [Mon, 21 Nov 2011 21:04:17 +0000 (22:04 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-blackfin

* 'master' of git://git.denx.de/u-boot-blackfin:
  Blackfin: cache result of cpp check
  Blackfin: traps: fix up printf warnings from debug
  Blackfin: drop now unused local variable

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-nds32
Wolfgang Denk [Mon, 21 Nov 2011 21:02:35 +0000 (22:02 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-nds32

* 'master' of git://git.denx.de/u-boot-nds32:
  nds32/lib: add ide generic support
  nds32: enhance io.h for compatibility with periphals
  ftide020: fix incorrect information display format

13 years agoMerge branch 'master' of git://git.denx.de/u-boot-nios
Wolfgang Denk [Mon, 21 Nov 2011 21:00:37 +0000 (22:00 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-nios

* 'master' of git://git.denx.de/u-boot-nios:
  nios2: Offer ft_board_setup() capability and call fdt_fixup_ethernet().
  board/nios2-generic: Use altera_pio driver and remove board specific driver
  gpio: Add driver for Altera's PIO core
  nios2: Pseudo implement dcache_status/enable/disable()

13 years agoBlackfin: cache result of cpp check
Mike Frysinger [Thu, 3 Nov 2011 03:49:03 +0000 (23:49 -0400)]
Blackfin: cache result of cpp check

Avoid overhead of computing this value multiple times.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoBlackfin: traps: fix up printf warnings from debug
Mike Frysinger [Wed, 2 Nov 2011 17:21:04 +0000 (13:21 -0400)]
Blackfin: traps: fix up printf warnings from debug

Cast uint32_t to void* for %p, and use %zu for size_t.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoBlackfin: drop now unused local variable
Mike Frysinger [Wed, 2 Nov 2011 17:18:09 +0000 (13:18 -0400)]
Blackfin: drop now unused local variable

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoMakefile: Add the missing dependency for spl target
Aneesh V [Sat, 5 Nov 2011 07:43:33 +0000 (13:13 +0530)]
Makefile: Add the missing dependency for spl target

Wolfgang's patch for build time improvement is bringing
out issues due to missing dependencies in the top-level
Makefile. I get errors such as the below while building
with many threads.

make[1]: /home/a0393566local/u-boot-denx/tools/mkimage: Command not found

This also allows one to do:
$ make spl/u-boot-spl.bin
if you want to build only spl

Cc: Wolfgang Denk <wd@denx.de>
Signed-off-by: Aneesh V <aneesh@ti.com>
13 years agogpio: Adapt PCA9698 to standard GPIO API
Dirk Eibach [Mon, 31 Oct 2011 08:39:12 +0000 (09:39 +0100)]
gpio: Adapt PCA9698 to standard GPIO API

Signed-off-by: Dirk Eibach <eibach@gdsys.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Stefan Roese <sr@denx.de>
13 years agonds32/lib: add ide generic support
Macpaul Lin [Fri, 18 Nov 2011 09:01:31 +0000 (17:01 +0800)]
nds32/lib: add ide generic support

Add ide generic support.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agonds32: enhance io.h for compatibility with periphals
Macpaul Lin [Fri, 23 Sep 2011 10:00:13 +0000 (18:00 +0800)]
nds32: enhance io.h for compatibility with periphals

Enhance io.h for periphals origin design on x86 systems.
For example, pci, ide, etc.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agoftide020: fix incorrect information display format
Macpaul Lin [Fri, 23 Sep 2011 09:54:34 +0000 (17:54 +0800)]
ftide020: fix incorrect information display format

Fix incorrect information display format when probing the device.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
13 years agotools: checkpatch.pl from Linux added to tools
Joe Hershberger [Tue, 18 Oct 2011 10:06:59 +0000 (10:06 +0000)]
tools: checkpatch.pl from Linux added to tools

Added from Linux - commit 30ecad51849ae132dc6ef6ddb62d499c7257515b

Include config file to ignore common false-positives

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
13 years agoe1000: fix unused variable waring for e1000 driver
Zang Roy-R61911 [Sun, 6 Nov 2011 22:22:36 +0000 (22:22 +0000)]
e1000: fix unused variable waring for e1000 driver

Fix the following build warning in drivers/net/e1000.c

e1000.c: In function 'e1000_reset_hw':
e1000.c:1373:11: warning: variable 'icr' set but not used [-Wunused-but-set-variable]
e1000.c: In function 'e1000_phy_init_script':
e1000.c:4395:11: warning: variable 'ret_val' set but not used [-Wunused-but-set-variable]

Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Kyle Moffett <Kyle.D.Moffett@boeing.com>
13 years agoe1000: remove duplicate macros in e1000.h
Timur Tabi [Tue, 1 Nov 2011 06:20:55 +0000 (06:20 +0000)]
e1000: remove duplicate macros in e1000.h

Some of the EEPROM Word Offset macros, and a few others,  are defined
twice in e1000.h.

Signed-off-by: Timur Tabi <timur@freescale.com>
13 years agoOrphan EVB64260_750CX board
Wolfgang Denk [Wed, 16 Nov 2011 20:58:21 +0000 (21:58 +0100)]
Orphan EVB64260_750CX board

The last maintainer (Eran Man) cannot be reached any more.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoRevert "sandbox: Change md command to use map_physmem"
Kumar Gala [Sat, 12 Nov 2011 08:02:12 +0000 (08:02 +0000)]
Revert "sandbox: Change md command to use map_physmem"

This reverts commit 355a835747c6f7c5071ead295a7dfc489c73cb03.

The original commit broke long standing assumption that md commands work
on effective addresses.  This normally isn't an issue for most systems
that map 1:1, however on systems with a 36-bit address map it breaks.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agocommon: tsi148 - fix gcc 4.6 compiler warning
Kim Phillips [Tue, 15 Nov 2011 23:02:23 +0000 (23:02 +0000)]
common: tsi148 - fix gcc 4.6 compiler warning

Configuring for vme8349 board...
cmd_tsi148.c: In function 'tsi148_init':
cmd_tsi148.c:56:17: warning: variable 'lastError' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
13 years agompc83xx: km83xx_i2c - fix gcc 4.6 compiler warning
Kim Phillips [Tue, 15 Nov 2011 22:59:53 +0000 (22:59 +0000)]
mpc83xx: km83xx_i2c - fix gcc 4.6 compiler warning

Configuring for kmeter1 board...
km83xx_i2c.c: In function 'i2c_make_abort':
km83xx_i2c.c:44:8: warning: variable 'dummy' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Acked-by: Heiko Schocher <hs@denx.de>
13 years agompc83xx: mpc8360emds - fix gcc 4.6 compiler warning
Kim Phillips [Tue, 15 Nov 2011 22:59:52 +0000 (22:59 +0000)]
mpc83xx: mpc8360emds - fix gcc 4.6 compiler warning

Configuring for MPC8360EMDS_66_HOST_33 - Board: MPC8360EMDS, Options: CLKIN_66MHZ,PCI,PCI_33M,PQ_MDS_PIB=1
mpc8360emds.c: In function 'board_eth_init':
mpc8360emds.c:178:12: warning: array subscript is above array bounds [-Warray-bounds]

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
13 years agompc83xx: spd_sdram - fix gcc 4.6 compiler warning
Kim Phillips [Tue, 15 Nov 2011 22:59:51 +0000 (22:59 +0000)]
mpc83xx: spd_sdram - fix gcc 4.6 compiler warning

Configuring for sbc8349 board...
spd_sdram.c: In function 'spd_sdram':
spd_sdram.c:152:41: warning: variable 'trfc_high' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
13 years agoFix warnings in yaffs
Simon Glass [Tue, 15 Nov 2011 18:17:07 +0000 (18:17 +0000)]
Fix warnings in yaffs

Sorry if this is already fixed somewhere - I could not find it.

This fixes the warnings show below.

yaffs_tagscompat.c: In function 'yaffs_TagsCompatabilityReadChunkWithTagsFromNAND':
yaffs_tagscompat.c:151: warning: dereferencing pointer 'tu' does break strict-aliasing rules
yaffs_tagscompat.c:150: warning: dereferencing pointer 'tu' does break strict-aliasing rules
yaffs_tagscompat.c:149: warning: dereferencing pointer 'tu' does break strict-aliasing rules
yaffs_tagscompat.c:148: warning: dereferencing pointer 'tu' does break strict-aliasing rules
yaffs_tagscompat.c:147: warning: dereferencing pointer 'tu' does break strict-aliasing rules
yaffs_tagscompat.c:146: warning: dereferencing pointer 'tu' does break strict-aliasing rules
yaffs_tagscompat.c:145: warning: dereferencing pointer 'tu' does break strict-aliasing rules
yaffs_tagscompat.c:144: warning: dereferencing pointer 'tu' does break strict-aliasing rules
yaffs_tagscompat.c:141: note: initialized from here

Signed-off-by: Simon Glass <sjg@chromium.org>
13 years agodrivers/rtc/s3c24x0_rtc.c: fix GCC 4.6 warnings
Anatolij Gustschin [Tue, 15 Nov 2011 13:21:03 +0000 (13:21 +0000)]
drivers/rtc/s3c24x0_rtc.c: fix GCC 4.6 warnings

Fix:
s3c24x0_rtc.c: In function 'rtc_get':
s3c24x0_rtc.c:67:53: warning: variable 'a_armed' set but not used
s3c24x0_rtc.c:67:45: warning: variable 'a_year' set but not used
s3c24x0_rtc.c:67:38: warning: variable 'a_mon' set but not used
s3c24x0_rtc.c:67:30: warning: variable 'a_date' set but not used
s3c24x0_rtc.c:67:22: warning: variable 'a_hour' set but not used
s3c24x0_rtc.c:67:15: warning: variable 'a_min' set but not used
s3c24x0_rtc.c:67:8: warning: variable 'a_sec' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agofs/yaffs2/yaffs_guts.c: Fix some GCC 4.6 warnings
Anatolij Gustschin [Tue, 15 Nov 2011 13:21:02 +0000 (13:21 +0000)]
fs/yaffs2/yaffs_guts.c: Fix some GCC 4.6 warnings

Fix:
yaffs_guts.c: In function 'yaffs_CheckChunkErased':
yaffs_guts.c:854:6: warning: variable 'result' set but not used
yaffs_guts.c: In function 'yaffs_UpdateObjectHeader':
yaffs_guts.c:3463:6: warning: variable 'result' set but not used
yaffs_guts.c: In function 'yaffs_GrabChunkCache':
yaffs_guts.c:3774:6: warning: variable 'pushout' set but not used
yaffs_guts.c: In function 'yaffs_Scan':
yaffs_guts.c:5237:6: warning: variable 'result' set but not used
yaffs_guts.c: In function 'yaffs_CheckObjectDetailsLoaded':
yaffs_guts.c:5748:6: warning: variable 'alloc_failed' set but not used
yaffs_guts.c:5747:6: warning: variable 'result' set but not used
yaffs_guts.c: In function 'yaffs_ScanBackwards':
yaffs_guts.c:5808:6: warning: variable 'deleted' set but not used
yaffs_guts.c:5806:6: warning: variable 'result' set but not used
yaffs_guts.c: In function 'yaffs_GetObjectName':
yaffs_guts.c:6657:7: warning: variable 'result' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agoarch/arm/cpu/armv7/s5p-common/pwm.c: fix GCC 4.6 warning
Anatolij Gustschin [Tue, 15 Nov 2011 13:21:01 +0000 (13:21 +0000)]
arch/arm/cpu/armv7/s5p-common/pwm.c: fix GCC 4.6 warning

Fix:
pwm.c: In function 'pwm_config':
pwm.c:85:16: warning: variable 'timer_rate_hz' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agodrivers/video/bus_vcxk.c: Fix GCC 4.6 warning
Anatolij Gustschin [Tue, 15 Nov 2011 13:20:59 +0000 (13:20 +0000)]
drivers/video/bus_vcxk.c: Fix GCC 4.6 warning

Fix:
bus_vcxk.c: In function 'vcxk_display_bitmap':
bus_vcxk.c:396:16: warning: variable 'compression' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agodrivers/video/da8xx-fb.c: Fix GCC 4.6 warning
Anatolij Gustschin [Tue, 15 Nov 2011 13:20:58 +0000 (13:20 +0000)]
drivers/video/da8xx-fb.c: Fix GCC 4.6 warning

Fix:
da8xx-fb.c: In function 'video_hw_init':
da8xx-fb.c:688:6: warning: variable 'ret' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agoboard/cm4008/flash.c: Fix GCC 4.6 warnings
Anatolij Gustschin [Tue, 15 Nov 2011 13:20:57 +0000 (13:20 +0000)]
board/cm4008/flash.c: Fix GCC 4.6 warnings

Fix:
flash.c: In function 'flash_erase':
flash.c:209:6: warning: variable 'flag' set but not used
[-Wunused-but-set-variable]
flash.c: In function 'write_data':
flash.c:373:6: warning: variable 'flag' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agoboard/cm41xx/flash.c: Fix GCC 4.6 warnings
Anatolij Gustschin [Tue, 15 Nov 2011 13:20:56 +0000 (13:20 +0000)]
board/cm41xx/flash.c: Fix GCC 4.6 warnings

Fix:
flash.c: In function 'flash_erase':
flash.c:209:6: warning: variable 'flag' set but not used
[-Wunused-but-set-variable]
flash.c: In function 'write_data':
flash.c:373:6: warning: variable 'flag' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agodrivers/net/enc28j60.c: Fix GCC 4.6 warnings
Anatolij Gustschin [Tue, 15 Nov 2011 13:20:55 +0000 (13:20 +0000)]
drivers/net/enc28j60.c: Fix GCC 4.6 warnings

Fix:
enc28j60.c: In function 'enc_receive':
enc28j60.c:435:5: warning: variable 'eir_reg' set but not used
[-Wunused-but-set-variable]
enc28j60.c: In function 'enc_poll':
enc28j60.c:503:5: warning: variable 'estat_reg' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agodrivers/net/at91_emac.c: Fix GCC 4.6 warning
Anatolij Gustschin [Tue, 15 Nov 2011 13:20:54 +0000 (13:20 +0000)]
drivers/net/at91_emac.c: Fix GCC 4.6 warning

Fix:
at91_emac.c: In function 'at91emac_write_hwaddr':
at91_emac.c:477:15: warning: variable 'dev' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agodrivers/mtd/dataflash.c: Fix GCC 4.6 warning
Anatolij Gustschin [Tue, 15 Nov 2011 13:20:53 +0000 (13:20 +0000)]
drivers/mtd/dataflash.c: Fix GCC 4.6 warning

Fix:
dataflash.c: In function 'AT91F_DataflashInit':
dataflash.c:42:6: warning: variable 'last_part' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agodrivers/spi/atmel_spi.c: Fix GCC 4.6 warning
Anatolij Gustschin [Tue, 15 Nov 2011 13:20:52 +0000 (13:20 +0000)]
drivers/spi/atmel_spi.c: Fix GCC 4.6 warning

Fix:
atmel_spi.c: In function 'spi_xfer':
atmel_spi.c:139:7: warning: variable 'ret' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agopip405.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:03:45 +0000 (08:03 +0000)]
pip405.c: Fix GCC 4.6 build warnings

Fix:
pip405.c: In function 'board_early_init_f':
pip405.c:192:16: warning: variable 'tctp_clocks' set but not used [-Wunused-but-set-variable]
pip405.c:182:16: warning: variable 'dataout' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agomip405.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:03:39 +0000 (08:03 +0000)]
mip405.c: Fix GCC 4.6 build warnings

Fix:
mip405.c: In function 'init_sdram':
mip405.c:250:4: warning: variable 'tctp_clocks' set but not used [-Wunused-but-set-variable]
mip405.c: In function 'initdram':
mip405.c:629:9: warning: variable 'ds' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoauto_update.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:03:33 +0000 (08:03 +0000)]
auto_update.c: Fix GCC 4.6 build warnings

Fix:
../common/auto_update.c: In function 'au_check_header_valid':
../common/auto_update.c:94:16: warning: variable 'checksum' set but not used [-Wunused-but-set-variable]
../common/auto_update.c: In function 'do_auto_update':
../common/auto_update.c:400:30: warning: variable 'got_ctrlc' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoiop480_uart.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:03:27 +0000 (08:03 +0000)]
iop480_uart.c: Fix GCC 4.6 build warnings

Fix:
iop480_uart.c: In function 'serial_init':
iop480_uart.c:137:16: warning: variable 'val' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agocmd_dasa_sim.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:03:20 +0000 (08:03 +0000)]
cmd_dasa_sim.c: Fix GCC 4.6 build warnings

Fix:
cmd_dasa_sim.c: In function 'updatePci9054':
cmd_dasa_sim.c:135:6: warning: variable 'val' set but not used [-Wunused-but-set-variable]
cmd_dasa_sim.c: In function 'clearPci9054':
cmd_dasa_sim.c:189:6: warning: variable 'val' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agocmd_pci405.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:03:06 +0000 (08:03 +0000)]
cmd_pci405.c: Fix GCC 4.6 build warnings

Fix:
cmd_pci405.c: In function 'do_loadpci':
cmd_pci405.c:45:6: warning: variable 'status' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agodlvision-10g.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:03:00 +0000 (08:03 +0000)]
dlvision-10g.c: Fix GCC 4.6 build warnings

Fix:
dlvision-10g.c: In function 'print_fpga_info':
dlvision-10g.c:90:11: warning: variable 'feature_compression' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agonand_boot.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:02:54 +0000 (08:02 +0000)]
nand_boot.c: Fix GCC 4.6 build warnings

Fix:
nand_boot.c: In function 'nand_read_page':
nand_boot.c:190:6: warning: variable 'stat' set but not used [-Wunused-but-set-variable]
nand_boot.c: In function 'nand_boot':
nand_boot.c:271:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agosata_dwc.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:02:49 +0000 (08:02 +0000)]
sata_dwc.c: Fix GCC 4.6 build warnings

Fix:
sata_dwc.c: In function 'sata_dwc_softreset':
sata_dwc.c:444:5: warning: variable 'status' set but not used [-Wunused-but-set-variable]
sata_dwc.c:443:6: warning: variable 'serror' set but not used [-Wunused-but-set-variable]
sata_dwc.c: In function 'scan_sata':
sata_dwc.c:654:16: warning: variable 'lba_desc' set but not used [-Wunused-but-set-variable]
sata_dwc.c:538:16: warning: variable 'xfer_mask' set but not used [-Wunused-but-set-variable]
sata_dwc.c: In function 'ata_dev_read_id':
sata_dwc.c:747:14: warning: variable 'reason' set but not used [-Wunused-but-set-variable]
sata_dwc.c: In function 'ata_dev_read_sectors':
sata_dwc.c:1810:6: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
sata_dwc.c: In function 'ata_dev_write_sectors':
sata_dwc.c:1994:6: warning: variable 'rc' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years ago20001122-1.c: Fix GCC 4.6 build warning
Stefan Roese [Tue, 15 Nov 2011 08:02:43 +0000 (08:02 +0000)]
20001122-1.c: Fix GCC 4.6 build warning

Fix:
20001122-1.c: In function 'fpu_post_test_math1':
20001122-1.c:37:22: warning: variable 'p' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years ago40x_spd_sdram.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:02:37 +0000 (08:02 +0000)]
40x_spd_sdram.c: Fix GCC 4.6 build warnings

Fix:
40x_spd_sdram.c: In function 'spd_sdram':
40x_spd_sdram.c:137:6: warning: variable 'sdram0_b3cr' set but not used [-Wunused-but-set-variable]
40x_spd_sdram.c:136:6: warning: variable 'sdram0_b2cr' set but not used [-Wunused-but-set-variable]
40x_spd_sdram.c:129:6: warning: variable 'sdram0_ecccfg' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years ago44x_spd_ddr2.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:02:30 +0000 (08:02 +0000)]
44x_spd_ddr2.c: Fix GCC 4.6 build warnings

44x_spd_ddr2.c: In function 'initdram':
44x_spd_ddr2.c:450:17: warning: variable 'dimm_spd' set but not used [-Wunused-but-set-variable]
44x_spd_ddr2.c: In function 'program_copt1':
44x_spd_ddr2.c:1003:16: warning: variable 'ddrtype' set but not used [-Wunused-but-set-variable]
44x_spd_ddr2.c: In function 'DQS_calibration_process':
44x_spd_ddr2.c:2498:7: warning: variable 'window_found' set but not used [-Wunused-but-set-variable]
44x_spd_ddr2.c:2497:16: warning: variable 'end_rffd' set but not used [-Wunused-but-set-variable]
44x_spd_ddr2.c:2496:16: warning: variable 'end_rqfd' set but not used [-Wunused-but-set-variable]
44x_spd_ddr2.c:2495:16: warning: variable 'begin_rffd' set but not used [-Wunused-but-set-variable]
44x_spd_ddr2.c:2494:16: warning: variable 'begin_rqfd' set but not used [-Wunused-but-set-variable]
44x_spd_ddr2.c:2493:7: warning: variable 'min_end' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years ago44x_spd_ddr.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:02:24 +0000 (08:02 +0000)]
44x_spd_ddr.c: Fix GCC 4.6 build warnings

Fix:
44x_spd_ddr.c: In function 'program_cfg0':
44x_spd_ddr.c:384:16: warning: variable 'dimm_64bit' set but not used [-Wunused-but-set-variable]
44x_spd_ddr.c:383:16: warning: variable 'dimm_32bit' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agocmd_ecctest.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:02:18 +0000 (08:02 +0000)]
cmd_ecctest.c: Fix GCC 4.6 build warnings

Fix:
cmd_ecctest.c: In function 'inject_ecc_error':
cmd_ecctest.c:116:6: warning: variable 'val' set but not used [-Wunused-but-set-variable]
cmd_ecctest.c: In function 'rewrite_ecc_parity':
cmd_ecctest.c:154:6: warning: variable 'val' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years ago4xx_ibm_ddr2_autocalib.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:02:11 +0000 (08:02 +0000)]
4xx_ibm_ddr2_autocalib.c: Fix GCC 4.6 build warnings

Fix:
4xx_ibm_ddr2_autocalib.c: In function 'get_membase':
4xx_ibm_ddr2_autocalib.c:157:8: warning: variable 'bxcf' set but not used [-Wunused-but-set-variable]
4xx_ibm_ddr2_autocalib.c: In function 'DQS_calibration_methodB':
4xx_ibm_ddr2_autocalib.c:722:8: warning: variable 'rffd' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years ago4xx_pcie.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:02:04 +0000 (08:02 +0000)]
4xx_pcie.c: Fix GCC 4.6 build warnings

Fix:
4xx_pcie.c: In function 'pcie_read_config':
4xx_pcie.c:230:6: warning: variable 'address' set but not used [-Wunused-but-set-variable]
4xx_pcie.c: In function 'pcie_write_config':
4xx_pcie.c:290:6: warning: variable 'address' set but not used [-Wunused-but-set-variable]
4xx_pcie.c: In function 'ppc4xx_setup_pcie_rootpoint':
4xx_pcie.c:1066:17: warning: variable 'rmbase' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years ago4xx_enet.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:01:58 +0000 (08:01 +0000)]
4xx_enet.c: Fix GCC 4.6 build warnings

Fix:
4xx_enet.c: In function 'ppc_4xx_eth_init':
4xx_enet.c:875:6: warning: variable 'ethgroup' set but not used [-Wunused-but-set-variable]

I used "__maybe_unused" here intentionally, since all other
alternatives to fix this compilation warning would result in more
ifdef's.

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agousb_ohci.c: Fix GCC 4.6 build warnings
Stefan Roese [Tue, 15 Nov 2011 08:01:45 +0000 (08:01 +0000)]
usb_ohci.c: Fix GCC 4.6 build warnings

Fix:
usb_ohci.c: In function 'dl_transfer_length':
usb_ohci.c:756:8: warning: variable 'tdINFO' set but not used [-Wunused-but-set-variable]

Signed-off-by: Stefan Roese <sr@denx.de>
13 years agoarch/powerpc/cpu/mpc512x/i2c.c: Fix GCC 4.6 warnings
Anatolij Gustschin [Thu, 10 Nov 2011 12:21:44 +0000 (12:21 +0000)]
arch/powerpc/cpu/mpc512x/i2c.c: Fix GCC 4.6 warnings

Fix:
i2c.c: In function 'wait_for_bb':
i2c.c:81:16: warning: variable 'temp' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agoarch/powerpc/cpu/mpc512x/pci.c: Fix GCC 4.6 warnings
Anatolij Gustschin [Thu, 10 Nov 2011 12:21:43 +0000 (12:21 +0000)]
arch/powerpc/cpu/mpc512x/pci.c: Fix GCC 4.6 warnings

Fix:
pci.c: In function 'pci_init_board':
pci.c:55:26: warning: variable 'pci_conf' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
13 years agoboard/esd/cpci750/sdram_init.c: Fix GCC 4.6 build warnings
Wolfgang Denk [Wed, 9 Nov 2011 09:29:06 +0000 (09:29 +0000)]
board/esd/cpci750/sdram_init.c: Fix GCC 4.6 build warnings

Fix:
sdram_init.c: In function 'check_dimm':
sdram_init.c:267:50: warning: variable 'trrd_clocks' set but not used
[-Wunused-but-set-variable]
sdram_init.c:267:37: warning: variable 'tras_clocks' set but not used
[-Wunused-but-set-variable]
sdram_init.c:267:24: warning: variable 'trcd_clocks' set but not used
[-Wunused-but-set-variable]
sdram_init.c:267:8: warning: variable 'trp_clocks' set but not used
[-Wunused-but-set-variable]
sdram_init.c:253:16: warning: variable 'spd_checksum' set but not used
[-Wunused-but-set-variable]
sdram_init.c: In function 'initdram':
sdram_init.c:1693:14: warning: variable 's1' set but not used
[-Wunused-but-set-variable]
sdram_init.c:1693:6: warning: variable 's0' set but not used
[-Wunused-but-set-variable]

Biggest part o the fix is converting the custom debug code to standard
debug().

No attempts were made to cleanup the code.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Reinhard Arlt <reinhard.arlt@esd-electronics.com>
13 years agoboard/esd/cpci750/cpci750.c: Fix error handling
Wolfgang Denk [Wed, 9 Nov 2011 09:29:05 +0000 (09:29 +0000)]
board/esd/cpci750/cpci750.c: Fix error handling

ThE code recorded error conditions but did not pass these on to the
higher level caller.  Fixing this fixes also this build warning:
cpci750.c: In function 'do_loadpci':
cpci750.c:569:6: warning: variable 'status' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Reinhard Arlt <reinhard.arlt@esd-electronics.com>
13 years agodrivers/video/ct69000.c: Fix GC 4.6 build warning
Wolfgang Denk [Wed, 9 Nov 2011 09:29:04 +0000 (09:29 +0000)]
drivers/video/ct69000.c: Fix GC 4.6 build warning

Convert custom debug code to use standard debug() facility.
This also fixes these build warning:
ct69000.c: In function 'FindAndSetPllParamIntoXrRegs':
ct69000.c:706:28: warning: variable 'new_pixclock' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Anatolij Gustschin <agust@denx.de>
13 years agocommon/cmd_universe.c: Fix GCC 4.6 build warning
Wolfgang Denk [Wed, 9 Nov 2011 09:29:03 +0000 (09:29 +0000)]
common/cmd_universe.c: Fix GCC 4.6 build warning

Fix:
cmd_universe.c: In function 'universe_init':
cmd_universe.c:49:17: warning: variable 'lastError' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agocommon/cmd_fdc.c: Fix GCC 4.6 build warnings
Wolfgang Denk [Wed, 9 Nov 2011 09:29:02 +0000 (09:29 +0000)]
common/cmd_fdc.c: Fix GCC 4.6 build warnings

Fix:
cmd_fdc.c: In function 'fdc_read_data':
cmd_fdc.c:435:6: warning: variable 'flags' set but not used
[-Wunused-but-set-variable]
cmd_fdc.c:432:16: warning: variable 'pcn' set but not used
[-Wunused-but-set-variable]
cmd_fdc.c:431:20: warning: variable 'lastblk' set but not used
[-Wunused-but-set-variable]

Note: no attempts were made to otherwise cleanup the code.

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoboard/evb64260/zuma_pbb_mbox.c: Fix GCC 4.6 build warnings
Wolfgang Denk [Wed, 9 Nov 2011 09:29:01 +0000 (09:29 +0000)]
board/evb64260/zuma_pbb_mbox.c: Fix GCC 4.6 build warnings

Fix:
zuma_pbb_mbox.c: In function 'zuma_mbox_dump':
zuma_pbb_mbox.c:115:2: warning: dereferencing type-punned pointer will
break strict-aliasing rules [-Wstrict-aliasing]
zuma_pbb_mbox.c:117:2: warning: dereferencing type-punned pointer will
break strict-aliasing rules [-Wstrict-aliasing]

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoboard/evb64260/zuma_pbb_mbox.c: CodingStyle cleanup
Wolfgang Denk [Wed, 9 Nov 2011 09:29:00 +0000 (09:29 +0000)]
board/evb64260/zuma_pbb_mbox.c: CodingStyle cleanup

Make (mostly) checkpatch-clean

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoboard/evb64260/sdram_init.c: Fix GCC 4.6 build warnings
Wolfgang Denk [Wed, 9 Nov 2011 09:28:59 +0000 (09:28 +0000)]
board/evb64260/sdram_init.c: Fix GCC 4.6 build warnings

Fix:
sdram_init.c: In function 'setup_sdram_common':
sdram_init.c:333:49: warning: variable 'ecc' set but not used
[-Wunused-but-set-variable]
sdram_init.c: In function 'setup_sdram':
sdram_init.c:410:13: warning: variable 'check' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoboard/evb64260/eth.c: Fix GCC 4.6 build warning
Wolfgang Denk [Wed, 9 Nov 2011 09:28:58 +0000 (09:28 +0000)]
board/evb64260/eth.c: Fix GCC 4.6 build warning

Fix:
eth.c: In function 'gt6426x_handle_SMI':
eth.c:130:15: warning: variable 'psr' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoboard/evb64260/evb64260.c: Fix GC 4.6 build warning
Wolfgang Denk [Wed, 9 Nov 2011 09:28:57 +0000 (09:28 +0000)]
board/evb64260/evb64260.c: Fix GC 4.6 build warning

Fix:
evb64260.c: In function 'debug_led':
evb64260.c:363:6: warning: variable 'dummy' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agoboard/evb64260/i2c.c: Fix GCC 4.6 build warnings
Wolfgang Denk [Wed, 9 Nov 2011 09:28:56 +0000 (09:28 +0000)]
board/evb64260/i2c.c: Fix GCC 4.6 build warnings

Fix:
i2c.c: In function 'i2c_init':
i2c.c:23:15: warning: variable 'actualFreq' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Eran Man <eran@nbase.co.il>
Acked-by: Heiko Schocher <hs@denx.de>
13 years agoboard/evb64260/i2c.c: Coding Style cleanup
Wolfgang Denk [Wed, 9 Nov 2011 09:28:55 +0000 (09:28 +0000)]
board/evb64260/i2c.c: Coding Style cleanup

Make checkpatch-clean

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Eran Man <eran@nbase.co.il>
13 years agodrivers/block/sym53c8xx.c: Fix GCC 4.6 build warning
Wolfgang Denk [Wed, 9 Nov 2011 09:28:54 +0000 (09:28 +0000)]
drivers/block/sym53c8xx.c: Fix GCC 4.6 build warning

Fix:
sym53c8xx.c: In function 'scsi_write_dsp':
sym53c8xx.c:456:16: warning: variable 'val' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
13 years agodrivers/block/sata_sil3114.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 06:21:10 +0000 (06:21 +0000)]
drivers/block/sata_sil3114.c: Fix GCC 4.6 build warning

Fix:

sata_sil3114.c: In function 'scan_sata':
sata_sil3114.c:793:7: warning: array subscript is above array bounds [-Warray-bounds]
sata_sil3114.c:794:7: warning: array subscript is above array bounds [-Warray-bounds]
sata_sil3114.c:795:39: warning: array subscript is above array bounds [-Warray-bounds]
sata_sil3114.c:795:7: warning: array subscript is above array bounds [-Warray-bounds]
sata_sil3114.c:797:7: warning: array subscript is above array bounds [-Warray-bounds]
sata_sil3114.c:800:7: warning: array subscript is above array bounds [-Warray-bounds]
sata_sil3114.c:801:7: warning: array subscript is above array bounds [-Warray-bounds]
sata_sil3114.c:802:39: warning: array subscript is above array bounds [-Warray-bounds]
sata_sil3114.c:802:7: warning: array subscript is above array bounds [-Warray-bounds]
sata_sil3114.c:804:7: warning: array subscript is above array bounds [-Warray-bounds]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agodrivers/bios_emulator/x86emu/ops.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 06:21:09 +0000 (06:21 +0000)]
drivers/bios_emulator/x86emu/ops.c: Fix GCC 4.6 build warning

Fix:

x86emu/ops.c: In function 'x86emuOp_int3':
x86emu/ops.c:3521:9: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
x86emu/ops.c: In function 'x86emuOp_int_IMM':
x86emu/ops.c:3549:9: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
x86emu/ops.c: In function 'x86emuOp_into':
x86emu/ops.c:3579:9: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
x86emu/ops.c: In function 'x86emuOp_aad':
x86emu/ops.c:3993:8: warning: variable 'a' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agodrivers/block/ahci.c: Fix GCC 4.6 build warning
Kumar Gala [Wed, 9 Nov 2011 06:21:08 +0000 (06:21 +0000)]
drivers/block/ahci.c: Fix GCC 4.6 build warning

Fix:

ahci.c: In function 'ata_scsiop_read10':
ahci.c:564:6: warning: variable 'lba' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
13 years agodavinci, mmc: fix gcc 4.6 build warnings
Heiko Schocher [Sun, 30 Oct 2011 19:15:53 +0000 (19:15 +0000)]
davinci, mmc: fix gcc 4.6 build warnings

Fix:
davinci_mmc.c: In function 'dmmc_wait_fifo_status':
davinci_mmc.c:72:7: warning: variable 'mmcstatus1' set but not used [-Wunused-but-set-variable]
davinci_mmc.c: In function 'dmmc_busy_wait':
davinci_mmc.c:89:7: warning: variable 'mmcstatus1' set but not used [-Wunused-but-set-variable]

Delete the unused variable.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
13 years agoFPGA: drivers/fpga/ivm_core.c: GCC4.6 fix build warnings
Stefano Babic [Sun, 6 Nov 2011 00:42:39 +0000 (00:42 +0000)]
FPGA: drivers/fpga/ivm_core.c: GCC4.6 fix build warnings

Fix:
ivm_core.c: In function 'ispVMLCOUNT':
ivm_core.c:2105:16: warning: unused variable 'usByte'

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Wolfgang Denk <wd@denx.de>