]> git.dujemihanovic.xyz Git - u-boot.git/commit
fsl-i2c: fix writes to data segment before relocation
authorTimur Tabi <timur@freescale.com>
Mon, 21 Jul 2008 19:26:23 +0000 (14:26 -0500)
committerWolfgang Denk <wd@denx.de>
Tue, 29 Jul 2008 22:10:13 +0000 (00:10 +0200)
commite4dafff86f289b5677143a3e41da7b45c6d27fc7
tree1a2d1c412f50be0566768a7d5ec745cbe4d1302f
parent1953d128fd07f07d1c3810a28c0863ea64dae1b6
fsl-i2c: fix writes to data segment before relocation

Prevent i2c_init() in fsl_i2c.c from writing to the data segment before
relocation.  Commit d8c82db4 added the ability for i2c_init() to program the
I2C bus speed and save the value in i2c_bus_speed[], which is a global
variable.  It is an error to write to the data segment before relocation,
which is what i2c_init() does when it stores the bus speed in i2c_bus_speed[].

Signed-off-by: Timur Tabi <timur@freescale.com>
drivers/i2c/fsl_i2c.c