Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e57c783 authored by Wolfram Sang's avatar Wolfram Sang
Browse files

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: default avatarWolfram Sang <wsa@the-dreams.de>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 24ed93a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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),