summaryrefslogtreecommitdiff
path: root/drivers/of/property.c
diff options
context:
space:
mode:
authorSaravana Kannan <saravanak@google.com>2020-02-22 04:40:37 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-04 19:58:48 +0300
commitbc749007ad8d8ff19ae1939b24e8173ef23e42bd (patch)
tree6a7cc5b0d00868d60f77f68a84c82a89b0010699 /drivers/of/property.c
parent35223d15f32a097b3529cfb31766e27759682af0 (diff)
downloadlinux-bc749007ad8d8ff19ae1939b24e8173ef23e42bd.tar.xz
of: property: Start using fw_devlink_get_flags()
The fw_devlink_get_flags() provides the right flags to use when creating mandatory device links derived from information provided by the firmware. So, use that. Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Saravana Kannan <saravanak@google.com> Link: https://lore.kernel.org/r/20200222014038.180923-5-saravanak@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/of/property.c')
-rw-r--r--drivers/of/property.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/property.c b/drivers/of/property.c
index e851c57a15b0..15fc9315f1a7 100644
--- a/drivers/of/property.c
+++ b/drivers/of/property.c
@@ -1262,7 +1262,7 @@ static int of_link_property(struct device *dev, struct device_node *con_np,
u32 dl_flags;
if (dev->of_node == con_np)
- dl_flags = DL_FLAG_AUTOPROBE_CONSUMER;
+ dl_flags = fw_devlink_get_flags();
else
dl_flags = DL_FLAG_SYNC_STATE_ONLY;