commit | b9c6f782150c9992308f4474f920586eaaca4cf1 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Oct 23 14:40:17 2020 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Oct 28 13:22:19 2020 +0100 |
tree | dda61f38c7261e143779bb1c0baa3acbe4ca0e15 | |
parent | 2d9c6442a9c81f4f8dee678d0b3c183173ab1e2d [diff] |
usb: typec: stusb160x: fix an IS_ERR() vs NULL check in probe The typec_register_port() function doesn't return NULL, it returns error pointers. Fixes: da0cb6310094 ("usb: typec: add support for STUSB160x Type-C controller family") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20201023114017.GE18329@kadam Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>