phy: Allow a NULL phy name for devm_phy_get()
authorRob Herring <robh@kernel.org>
Wed, 14 Apr 2021 13:55:25 +0000 (08:55 -0500)
committerVinod Koul <vkoul@kernel.org>
Fri, 14 May 2021 12:18:41 +0000 (17:48 +0530)
commit8a917813cc74c3e8fa41f16aff90c5931bb49152
tree3e0de7b47d79035aa476ba81a88b3387616bedce
parent520264db3bf9571ef8cca96e30ffcf6fb31999b3
phy: Allow a NULL phy name for devm_phy_get()

For a single PHY, there's no reason to have a phy-names entry in DT.
The DT specific get functions allow for this already, but devm_phy_get()
WARNs in this case. Other subsystems also don't warn in their get
functions. Let's drop the WARN for DT case in devm_phy_get().

Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210414135525.3535787-1-robh@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/phy-core.c