diff options
Diffstat (limited to 'drivers/i2c/i2c-core-of.c')
| -rw-r--r-- | drivers/i2c/i2c-core-of.c | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/drivers/i2c/i2c-core-of.c b/drivers/i2c/i2c-core-of.c index bce6b796e04c..545436b7dd53 100644 --- a/drivers/i2c/i2c-core-of.c +++ b/drivers/i2c/i2c-core-of.c @@ -178,6 +178,11 @@ static int of_i2c_notify(struct notifier_block *nb, unsigned long action,  			return NOTIFY_OK;  		} +		/* +		 * Clear the flag before adding the device so that fw_devlink +		 * doesn't skip adding consumers to this device. +		 */ +		rd->dn->fwnode.flags &= ~FWNODE_FLAG_NOT_DEVICE;  		client = of_i2c_register_device(adap, rd->dn);  		if (IS_ERR(client)) {  			dev_err(&adap->dev, "failed to create client for '%pOF'\n", |