diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-12-18 01:29:29 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2011-12-19 20:54:20 -0500 |
commit | 92891da11a3f913b50a685c3facff6a5891a45ba (patch) | |
tree | 9a8b6f27e076aeb6e6169a119f1d56feaec10510 /drivers | |
parent | dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50 (diff) |
i2c: tegra: Add __devinit/exit to probe/remove
This fixes some section mismatch build warnings.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 46b6500c5478..e8560ed3d3c8 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c | |||
@@ -558,7 +558,7 @@ static const struct i2c_algorithm tegra_i2c_algo = { | |||
558 | .functionality = tegra_i2c_func, | 558 | .functionality = tegra_i2c_func, |
559 | }; | 559 | }; |
560 | 560 | ||
561 | static int tegra_i2c_probe(struct platform_device *pdev) | 561 | static int __devinit tegra_i2c_probe(struct platform_device *pdev) |
562 | { | 562 | { |
563 | struct tegra_i2c_dev *i2c_dev; | 563 | struct tegra_i2c_dev *i2c_dev; |
564 | struct tegra_i2c_platform_data *pdata = pdev->dev.platform_data; | 564 | struct tegra_i2c_platform_data *pdata = pdev->dev.platform_data; |
@@ -690,7 +690,7 @@ err_iounmap: | |||
690 | return ret; | 690 | return ret; |
691 | } | 691 | } |
692 | 692 | ||
693 | static int tegra_i2c_remove(struct platform_device *pdev) | 693 | static int __devexit tegra_i2c_remove(struct platform_device *pdev) |
694 | { | 694 | { |
695 | struct tegra_i2c_dev *i2c_dev = platform_get_drvdata(pdev); | 695 | struct tegra_i2c_dev *i2c_dev = platform_get_drvdata(pdev); |
696 | i2c_del_adapter(&i2c_dev->adapter); | 696 | i2c_del_adapter(&i2c_dev->adapter); |