Add notification to inform caller that driver probing has been
completed. It allows to user, invoked platform device registration for
"i2c-mlxcpld" driver, to be notified that bus adapter is available, and
thus some devices could be connected to this bus.
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
        if (err)
                goto mlxcpld_i2_probe_failed;
 
+       /* Notify caller when adapter is added. */
+       if (pdata && pdata->completion_notify)
+               pdata->completion_notify(pdata->handle, mlxcpld_i2c_adapter.nr);
+
        return 0;
 
 mlxcpld_i2_probe_failed: