Skip to content
Snippets Groups Projects
Commit 645cb46e authored by Tom Rini's avatar Tom Rini
Browse files

fsl_i2c.c: Fix warning on gcc-6.x


With gcc-6.x we see:
drivers/i2c/fsl_i2c.c:86:3: warning: ‘fsl_i2c_speed_map’ defined but not
used [-Wunused-const-variable=]

The easy way to fix this is that since we only use fsl_i2c_speed_map at
all on __M68K__ move the existing guards around slightly.

Reported-by: default avatarThomas Schaefer <Thomas.Schaefer@kontron.com>
Signed-off-by: default avatarTom Rini <trini@konsulko.com>
Acked-by: default avatarHeiko Schocher <hs@denx.de>
parent 93f48779
No related branches found
No related tags found
Loading
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