From: Kumar Gala Date: Tue, 8 Nov 2011 03:39:43 +0000 (+0000) Subject: fsl_i2c: Fix compile warning X-Git-Tag: v2011.12-rc1~224^2^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aa5512157b76a66858d88e02156894f8cd511791;p=u-boot fsl_i2c: Fix compile warning fsl_i2c.c: In function 'i2c_init': fsl_i2c.c:245:7: warning: assignment discards qualifiers from pointer target type Signed-off-by: Kumar Gala --- diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index 258be0a908..5b017a910c 100644 --- a/drivers/i2c/fsl_i2c.c +++ b/drivers/i2c/fsl_i2c.c @@ -225,7 +225,7 @@ unsigned int get_i2c_clock(int bus) void i2c_init(int speed, int slaveadd) { - struct fsl_i2c *dev; + const struct fsl_i2c *dev; unsigned int temp; int bus_num, i;