]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
i2c-omap: mark init-only functions as __init
authorPaul Walmsley <paul@pwsan.com>
Fri, 18 Jul 2008 01:44:13 +0000 (19:44 -0600)
committerTony Lindgren <tony@atomide.com>
Mon, 4 Aug 2008 14:08:54 +0000 (17:08 +0300)
Mark functions called only at init time as __init.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/busses/i2c-omap.c

index ed7e9ad754d421e9d5fa8db77ef8fbcaf664d057..65fe9bb28c2df73f6a517d127ef24997fd3f7dbd 100644 (file)
@@ -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;