diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-02-10 05:04:10 -0500 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-03-05 11:17:12 -0500 |
commit | 02c2a28231a30ec7e7d1edf4d8da141554b7d8ad (patch) | |
tree | 85a27a376a4e45b8253734128c7786533b351535 /drivers/i2c | |
parent | bee749c6f02c859980e44bd669a1f2de144b237f (diff) |
i2c: i2c-tegra: deprecate class based instantiation
Warn users that class based instantiation is going away soon in favour
of more robust probing and faster bootup times.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index 9704537aee3c..00f04cb5b4eb 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c | |||
@@ -794,7 +794,7 @@ static int tegra_i2c_probe(struct platform_device *pdev) | |||
794 | 794 | ||
795 | i2c_set_adapdata(&i2c_dev->adapter, i2c_dev); | 795 | i2c_set_adapdata(&i2c_dev->adapter, i2c_dev); |
796 | i2c_dev->adapter.owner = THIS_MODULE; | 796 | i2c_dev->adapter.owner = THIS_MODULE; |
797 | i2c_dev->adapter.class = I2C_CLASS_HWMON; | 797 | i2c_dev->adapter.class = I2C_CLASS_HWMON | I2C_CLASS_DEPRECATED; |
798 | strlcpy(i2c_dev->adapter.name, "Tegra I2C adapter", | 798 | strlcpy(i2c_dev->adapter.name, "Tegra I2C adapter", |
799 | sizeof(i2c_dev->adapter.name)); | 799 | sizeof(i2c_dev->adapter.name)); |
800 | i2c_dev->adapter.algo = &tegra_i2c_algo; | 800 | i2c_dev->adapter.algo = &tegra_i2c_algo; |