typec: fusb302: Use dev_err during probe
authorMats Karrman <mats.dev.list@gmail.com>
Thu, 23 Nov 2017 23:03:16 +0000 (00:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2017 14:08:43 +0000 (15:08 +0100)
commitcf140a3569714be6db8f3db56ba68c8554c108c9
treea3b3f352664acb590faa31005b9c447c16a622bc
parent81d8a8eb0a975e151cdbd14f90516a8147d35ee2
typec: fusb302: Use dev_err during probe

If probe fails, fusb302_debugfs_exit is called making it impossible
to view any logs so use normal dev_err for any error messages during
probe.

Signed-off-by: Mats Karrman <mats.dev.list@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/fusb302/fusb302.c