i2c: i2c-bfin-twi: deprecate class based instantiation
authorWolfram Sang <wsa@the-dreams.de>
Mon, 10 Feb 2014 10:04:00 +0000 (11:04 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 5 Mar 2014 16:16:53 +0000 (17:16 +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: Sonic Zhang <sonic.zhang@analog.com>
drivers/i2c/busses/i2c-bfin-twi.c

index 3b9bd9a3f2b08a0a43683c87f1801d2f330185c3..c75f0e943b32362d6bd9aa373acde40719c969a6 100644 (file)
@@ -669,7 +669,7 @@ static int i2c_bfin_twi_probe(struct platform_device *pdev)
        strlcpy(p_adap->name, pdev->name, sizeof(p_adap->name));
        p_adap->algo = &bfin_twi_algorithm;
        p_adap->algo_data = iface;
-       p_adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD;
+       p_adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD | I2C_CLASS_DEPRECATED;
        p_adap->dev.parent = &pdev->dev;
        p_adap->timeout = 5 * HZ;
        p_adap->retries = 3;