soft_i2c: prevent compiler warnings if driver does not use CPU Pins.
authorHeiko Schocher <hs@denx.de>
Wed, 15 Oct 2008 07:35:26 +0000 (09:35 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 18 Oct 2008 19:54:01 +0000 (21:54 +0200)
commit98aed379586a155292efbf3209356836584b601c
treeb6ed51c21c915d6c0315febb0bf6b787dcc38ed8
parent799b784aa00cb03a352847ab9f9acdde79b72d21
soft_i2c: prevent compiler warnings if driver does not use CPU Pins.

This patch fixes the following warnings, when using
the soft_i2c driver using no CPU pins on MPC82xx or MPC8xx
systems:

soft_i2c.c: In function 'send_reset':
soft_i2c.c:93: warning: unused variable 'immr'
soft_i2c.c: In function 'send_start':
soft_i2c.c:124: warning: unused variable 'immr'
soft_i2c.c: In function 'send_stop':
soft_i2c.c:146: warning: unused variable 'immr'
soft_i2c.c: In function 'send_ack':
soft_i2c.c:171: warning: unused variable 'immr'
soft_i2c.c: In function 'write_byte':
soft_i2c.c:196: warning: unused variable 'immr'
soft_i2c.c: In function 'read_byte':
soft_i2c.c:244: warning: unused variable 'immr'

Signed-off-by: Heiko Schocher <hs@denx.de>
drivers/i2c/soft_i2c.c
include/i2c.h