Commit 35223d15 authored by Saravana Kannan's avatar Saravana Kannan Committed by Greg Kroah-Hartman

efi/arm: 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: default avatarArd Biesheuvel <ardb@kernel.org>
Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20200222014038.180923-4-saravanak@google.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8375e74f
...@@ -349,7 +349,7 @@ static int efifb_add_links(const struct fwnode_handle *fwnode, ...@@ -349,7 +349,7 @@ static int efifb_add_links(const struct fwnode_handle *fwnode,
* If this fails, retrying this function at a later point won't * If this fails, retrying this function at a later point won't
* change anything. So, don't return an error after this. * change anything. So, don't return an error after this.
*/ */
if (!device_link_add(dev, sup_dev, 0)) if (!device_link_add(dev, sup_dev, fw_devlink_get_flags()))
dev_warn(dev, "device_link_add() failed\n"); dev_warn(dev, "device_link_add() failed\n");
put_device(sup_dev); put_device(sup_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment