summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2021-05-26 18:35:48 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-27 09:23:57 +0200
commitacad3e9c7250c5fd20d9778a163f2adc95de38f5 (patch)
tree526bdf04af6777dc3f5f15c0b0e90d9c811c900f /drivers
parent7bf991eab8b21afb7bd130b7065384a6ce2e8789 (diff)
usb: typec: mux: Remove requirement for the "orientation-switch" device property
The additional boolean device property "orientation-switch" is not needed when the connection is described with device graph, so removing the check and the requirement for it. Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20210526153548.61276-3-heikki.krogerus@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/typec/mux.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/typec/mux.c b/drivers/usb/typec/mux.c
index 6daf805be7f4..5fce4c4c9047 100644
--- a/drivers/usb/typec/mux.c
+++ b/drivers/usb/typec/mux.c
@@ -30,9 +30,6 @@ static void *typec_switch_match(struct fwnode_handle *fwnode, const char *id,
{
struct device *dev;
- if (id && !fwnode_property_present(fwnode, id))
- return NULL;
-
dev = class_find_device(&typec_mux_class, NULL, fwnode,
switch_fwnode_match);