Skip to content

Commit

Permalink
usb: typec: tcpm: fusb302: Do not log an error on -EPROBE_DEFER
Browse files Browse the repository at this point in the history
Do not log an error if tcpm_register_port() fails with -EPROBE_DEFER.

Fixes: cf140a3 ("typec: fusb302: Use dev_err during probe")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Hans de Goede authored and Greg Kroah-Hartman committed Mar 9, 2018
1 parent d6c931e commit 7832f6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/typec/fusb302/fusb302.c
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,8 @@ static int fusb302_probe(struct i2c_client *client,
chip->tcpm_port = tcpm_register_port(&client->dev, &chip->tcpc_dev);
if (IS_ERR(chip->tcpm_port)) {
ret = PTR_ERR(chip->tcpm_port);
dev_err(dev, "cannot register tcpm port, ret=%d", ret);
if (ret != -EPROBE_DEFER)
dev_err(dev, "cannot register tcpm port, ret=%d", ret);
goto destroy_workqueue;
}

Expand Down

0 comments on commit 7832f6d

Please sign in to comment.