diff options
author | Jonas Karlman <jonas@kwiboo.se> | 2023-08-31 22:16:36 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-09-13 15:52:20 -0400 |
commit | 5ccfdd8a8320001ac08ad03a2a36bfd45c7c151c (patch) | |
tree | 1a0fb001a807744c18c5238b0cec18ac87d92530 /drivers/timer/timer-uclass.c | |
parent | 14639bf14d824d9fbcfd918f0e7924c7f7065422 (diff) |
usb: dwc3: Use generic_phy_valid() helper
The documentation for struct phy state that "The content of the
structure is managed solely by the PHY API and PHY drivers".
Change to use the generic_phy_valid() helper to check if phy is valid.
Also remove setting phy->dev to NULL now that generic_phy_get_by_name()
properly initialize phy->dev to NULL.
Fixes: 142d50fbce7c ("usb: dwc3: Add support for usb3-phy PHY configuration")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Diffstat (limited to 'drivers/timer/timer-uclass.c')
0 files changed, 0 insertions, 0 deletions