diff options
author | Saravana Kannan <saravanak@google.com> | 2020-05-14 22:34:58 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-15 16:34:51 +0200 |
commit | 5f5377eaddfc24e5d7562e588d0ff84f9264d7c1 (patch) | |
tree | f1e818e41863b0356e0b09eb88bd594debf64f72 /drivers/fpga/machxo2-spi.c | |
parent | 42926ac3cd50937346c23c0005817264af4357a7 (diff) | |
download | linux-5f5377eaddfc24e5d7562e588d0ff84f9264d7c1.tar.bz2 |
driver core: Look for waiting consumers only for a fwnode's primary device
Commit 4dbe191c046e ("driver core: Add device links from fwnode only for
the primary device") skipped linking a fwnode's secondary device to
the suppliers listed in its fwnode.
However, a fwnode's secondary device can't be found using
get_dev_from_fwnode(). So, there's no point in trying to see if devices
waiting for suppliers might want to link to a fwnode's secondary device.
This commit removes that unnecessary step for devices that aren't a
fwnode's primary device and also moves the code to a more appropriate
part of the file.
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20200515053500.215929-3-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions