usb: typec: Fix return type of tcpci_register_port() function
This patch fix the return type of tcpci_register_port() to fix the
compilation warnings.
drivers/usb/typec/tcpci.c: In function ‘tcpci_register_port’:
drivers/usb/typec/tcpci.c:882:10: warning: returning ‘int’ from a function with return type ‘struct tcpci *’ makes pointer from integer without a cast [-Wint-conversion]
return -ENOMEM;
^
drivers/usb/typec/tcpci.c:888:10: warning: returning ‘int’ from a function with return type ‘struct tcpci *’ makes pointer from integer without a cast [-Wint-conversion]
return err;
^~~
drivers/usb/typec/tcpci.c: In function ‘tcpci_probe’:
drivers/usb/typec/tcpci.c:914:6: warning: unused variable ‘val’ [-Wunused-variable]
u16 val = 0;
^~~
AR drivers/usb/typec/built-in.a
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>