From: Saravana Kannan Date: Sat, 22 Feb 2020 01:40:37 +0000 (-0800) Subject: of: property: Start using fw_devlink_get_flags() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bc749007ad8d8ff19ae1939b24e8173ef23e42bd;p=linux.git 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 Signed-off-by: Saravana Kannan Link: https://lore.kernel.org/r/20200222014038.180923-5-saravanak@google.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/of/property.c b/drivers/of/property.c index e851c57a15b06..15fc9315f1a71 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;