i2c: tegra: Add __devinit/exit to probe/remove
Stephen Warren [Sun, 18 Dec 2011 06:29:29 +0000 (23:29 -0700)]
This fixes some section mismatch build warnings.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
This is based on mainline
92891da11a3f913b50a685c3facff6a5891a45ba

Change-Id: I40547607818dbc42e5a428bfd98edcf472a7e35e
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116466
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>

drivers/i2c/busses/i2c-tegra.c

index ac2f744..3339801 100644 (file)
@@ -840,7 +840,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 *plat = pdev->dev.platform_data;
@@ -1027,7 +1027,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);
        while (i2c_dev->bus_count--)