Skip to content

Commit 7832f6d

Browse files
jwrdegoedegregkh
authored andcommitted
usb: typec: tcpm: fusb302: Do not log an error on -EPROBE_DEFER
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 <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d6c931e commit 7832f6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/usb/typec/fusb302/fusb302.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,8 @@ static int fusb302_probe(struct i2c_client *client,
18571857
chip->tcpm_port = tcpm_register_port(&client->dev, &chip->tcpc_dev);
18581858
if (IS_ERR(chip->tcpm_port)) {
18591859
ret = PTR_ERR(chip->tcpm_port);
1860-
dev_err(dev, "cannot register tcpm port, ret=%d", ret);
1860+
if (ret != -EPROBE_DEFER)
1861+
dev_err(dev, "cannot register tcpm port, ret=%d", ret);
18611862
goto destroy_workqueue;
18621863
}
18631864

0 commit comments

Comments
 (0)