Skip to content
Snippets Groups Projects
Commit e4dafff8 authored by Timur Tabi's avatar Timur Tabi Committed by Wolfgang Denk
Browse files

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: default avatarTimur Tabi <timur@freescale.com>
parent 1953d128
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment