fsl_i2c: Fix compile warning
authorKumar Gala <galak@kernel.crashing.org>
Tue, 8 Nov 2011 03:39:43 +0000 (03:39 +0000)
committerHeiko Schocher <hs@denx.de>
Wed, 9 Nov 2011 05:28:20 +0000 (06:28 +0100)
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 <galak@kernel.crashing.org>
drivers/i2c/fsl_i2c.c

index 258be0a908ea73bbf9265057df6e2a20d7070be5..5b017a910cd7bbfd919cb5c3d8033a568302f91e 100644 (file)
@@ -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;