diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-02-10 05:04:04 -0500 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-03-05 11:17:03 -0500 |
commit | 8e57c7831cf453ec0b78324cbaf510f740d83729 (patch) | |
tree | e7f0622d94235ae04dd926a2d9daccb93d0bbd2b | |
parent | 24ed93a6a3da79f876d9213d8300d24b49561a3f (diff) |
i2c: i2c-nomadik: 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: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/i2c/busses/i2c-nomadik.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c index dfbb800a8a8d..28cbe1b2a2ec 100644 --- a/drivers/i2c/busses/i2c-nomadik.c +++ b/drivers/i2c/busses/i2c-nomadik.c | |||
@@ -1033,7 +1033,7 @@ static int nmk_i2c_probe(struct amba_device *adev, const struct amba_id *id) | |||
1033 | adap->dev.of_node = np; | 1033 | adap->dev.of_node = np; |
1034 | adap->dev.parent = &adev->dev; | 1034 | adap->dev.parent = &adev->dev; |
1035 | adap->owner = THIS_MODULE; | 1035 | adap->owner = THIS_MODULE; |
1036 | adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD; | 1036 | adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD | I2C_CLASS_DEPRECATED; |
1037 | adap->algo = &nmk_i2c_algo; | 1037 | adap->algo = &nmk_i2c_algo; |
1038 | adap->timeout = msecs_to_jiffies(dev->timeout); | 1038 | adap->timeout = msecs_to_jiffies(dev->timeout); |
1039 | snprintf(adap->name, sizeof(adap->name), | 1039 | snprintf(adap->name, sizeof(adap->name), |