i2c: i2c-nomadik: deprecate class based instantiation
authorWolfram Sang <wsa@the-dreams.de>
Mon, 10 Feb 2014 10:04:04 +0000 (11:04 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 5 Mar 2014 16:17:03 +0000 (17:17 +0100)
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>
drivers/i2c/busses/i2c-nomadik.c

index dfbb800a8a8da92abece7a0201bd17b8368b63b5..28cbe1b2a2ec2958547b843d2f86d672fedb5e0b 100644 (file)
@@ -1033,7 +1033,7 @@ static int nmk_i2c_probe(struct amba_device *adev, const struct amba_id *id)
        adap->dev.of_node = np;
        adap->dev.parent = &adev->dev;
        adap->owner     = THIS_MODULE;
-       adap->class     = I2C_CLASS_HWMON | I2C_CLASS_SPD;
+       adap->class     = I2C_CLASS_HWMON | I2C_CLASS_SPD | I2C_CLASS_DEPRECATED;
        adap->algo      = &nmk_i2c_algo;
        adap->timeout   = msecs_to_jiffies(dev->timeout);
        snprintf(adap->name, sizeof(adap->name),