i2c: tegra: Add __devinit/exit to probe/remove
authorStephen Warren <swarren@nvidia.com>
Sun, 18 Dec 2011 06:29:29 +0000 (23:29 -0700)
committerOlof Johansson <olof@lixom.net>
Tue, 20 Dec 2011 01:54:20 +0000 (17:54 -0800)
This fixes some section mismatch build warnings.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/i2c/busses/i2c-tegra.c

index 46b6500c5478e9d3f1eb952848ed2d47dbf52a8f..e8560ed3d3c8c71ab034175af4dbc139c767e13c 100644 (file)
@@ -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;
@@ -690,7 +690,7 @@ err_iounmap:
        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);