drivers/i2c/fsl_i2c.c: sparse fix
authorKim Phillips <kim.phillips@freescale.com>
Tue, 16 Oct 2012 14:28:43 +0000 (14:28 +0000)
committerTom Rini <trini@ti.com>
Thu, 25 Oct 2012 19:06:21 +0000 (12:06 -0700)
fsl_i2c.c:217:14: warning: symbol 'get_i2c_clock' was not declared. Should it be static?

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Acked-by: Heiko Schocher <hs@denx.de>
drivers/i2c/fsl_i2c.c

index 5b017a910cd7bbfd919cb5c3d8033a568302f91e..3cb232fdd110c44ab391e38252b707a89c565fa2 100644 (file)
@@ -214,7 +214,7 @@ static unsigned int set_i2c_bus_speed(const struct fsl_i2c *dev,
        return speed;
 }
 
-unsigned int get_i2c_clock(int bus)
+static unsigned int get_i2c_clock(int bus)
 {
        if (bus)
                return gd->i2c2_clk;    /* I2C2 clock */