From: Paul Walmsley Date: Fri, 18 Jul 2008 01:44:13 +0000 (-0600) Subject: i2c-omap: mark init-only functions as __init X-Git-Tag: v2.6.26-omap1~65 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=282f47fd8b4b3d2328d85a91c57245896ef10775;p=linux-2.6-omap-h63xx.git i2c-omap: mark init-only functions as __init Mark functions called only at init time as __init. Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index ed7e9ad754d..65fe9bb28c2 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -160,7 +160,7 @@ static inline u16 omap_i2c_read_reg(struct omap_i2c_dev *i2c_dev, int reg) return __raw_readw(i2c_dev->base + reg); } -static int omap_i2c_get_clocks(struct omap_i2c_dev *dev) +static int __init omap_i2c_get_clocks(struct omap_i2c_dev *dev) { if (cpu_is_omap16xx() || cpu_class_is_omap2()) { dev->iclk = clk_get(dev->dev, "i2c_ick"); @@ -707,7 +707,7 @@ static const struct i2c_algorithm omap_i2c_algo = { .functionality = omap_i2c_func, }; -static int +static int __init omap_i2c_probe(struct platform_device *pdev) { struct omap_i2c_dev *dev;