Skip to content

Commit

Permalink
i2c: tegra: Add __devinit/exit to probe/remove
Browse files Browse the repository at this point in the history
This fixes some section mismatch build warnings.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Stephen Warren authored and Olof Johansson committed Dec 20, 2011
1 parent dc47ce9 commit 92891da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/i2c/busses/i2c-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ static const struct i2c_algorithm tegra_i2c_algo = {
.functionality = tegra_i2c_func,
};

static int tegra_i2c_probe(struct platform_device *pdev)
static int __devinit tegra_i2c_probe(struct platform_device *pdev)
{
struct tegra_i2c_dev *i2c_dev;
struct tegra_i2c_platform_data *pdata = pdev->dev.platform_data;
Expand Down Expand Up @@ -690,7 +690,7 @@ static int tegra_i2c_probe(struct platform_device *pdev)
return ret;
}

static int tegra_i2c_remove(struct platform_device *pdev)
static int __devexit tegra_i2c_remove(struct platform_device *pdev)
{
struct tegra_i2c_dev *i2c_dev = platform_get_drvdata(pdev);
i2c_del_adapter(&i2c_dev->adapter);
Expand Down

0 comments on commit 92891da

Please sign in to comment.