diff options
author | Paul Walmsley <paul@pwsan.com> | 2008-11-21 13:39:46 -0800 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-11-21 13:39:46 -0800 |
commit | 510be9c9ad852dc902fd926ec8e03b67e62d8915 (patch) | |
tree | c1a2a1f7f6be122684742f385e9d01968a51f53b /drivers/i2c | |
parent | 3d522fb41ead214d9d9236ec184271633e1cfc2f (diff) | |
download | linux-510be9c9ad852dc902fd926ec8e03b67e62d8915.tar.bz2 |
i2c-omap: Mark init-only functions as __init
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-omap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 3f7726a43125..61d2e5ad6d6c 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -154,7 +154,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"); @@ -689,7 +689,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; |