i2c: i2c-mv64xxx: deprecate class based instantiation
authorWolfram Sang <wsa@the-dreams.de>
Mon, 10 Feb 2014 10:04:03 +0000 (11:04 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 28 Mar 2014 07:54:26 +0000 (08:54 +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>
drivers/i2c/busses/i2c-mv64xxx.c

index 681ea4db39a3f628a12c16d727d413f57474be29..540ea692bf79e4d88fe30fd53e0f68173b16ec88 100644 (file)
@@ -863,7 +863,7 @@ mv64xxx_i2c_probe(struct platform_device *pd)
        drv_data->adapter.dev.parent = &pd->dev;
        drv_data->adapter.algo = &mv64xxx_i2c_algo;
        drv_data->adapter.owner = THIS_MODULE;
-       drv_data->adapter.class = I2C_CLASS_HWMON | I2C_CLASS_SPD;
+       drv_data->adapter.class = I2C_CLASS_HWMON | I2C_CLASS_SPD | I2C_CLASS_DEPRECATED;
        drv_data->adapter.nr = pd->id;
        drv_data->adapter.dev.of_node = pd->dev.of_node;
        platform_set_drvdata(pd, drv_data);