pds_core: devlink params for enabling VIF support
[linux-block.git] / drivers / i2c / i2c-core-of.c
index bce6b796e04c2ca0523bf1fc83117b13b4bc2c43..545436b7dd5355a5505f1c4348241d58a6157470 100644 (file)
@@ -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",