summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2012-10-16 14:28:43 +0000
committerTom Rini <trini@ti.com>2012-10-25 12:06:21 -0700
commit62f730fffdd2b6e354773fdcb4b4c01262153319 (patch)
tree4c55618f676fe49c09924de75fb7b89d51563744
parent186fc4db263fc6332d6712be99a9a387087d29c7 (diff)
downloadu-boot-imx-62f730fffdd2b6e354773fdcb4b4c01262153319.zip
u-boot-imx-62f730fffdd2b6e354773fdcb4b4c01262153319.tar.gz
u-boot-imx-62f730fffdd2b6e354773fdcb4b4c01262153319.tar.bz2
drivers/i2c/fsl_i2c.c: sparse fix
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>
-rw-r--r--drivers/i2c/fsl_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c
index 5b017a9..3cb232f 100644
--- a/drivers/i2c/fsl_i2c.c
+++ b/drivers/i2c/fsl_i2c.c
@@ -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 */