mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
scsi: ceva: 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.
Fixes: f6f5451d46
("scsi: ceva: Enable PHY and reset support")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
This commit is contained in:
parent
5ccfdd8a83
commit
017ae4920b
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ static int sata_ceva_probe(struct udevice *dev)
|
|||
}
|
||||
}
|
||||
|
||||
if (phy.dev) {
|
||||
if (generic_phy_valid(&phy)) {
|
||||
dev_dbg(dev, "Perform PHY power on\n");
|
||||
ret = generic_phy_power_on(&phy);
|
||||
if (ret) {
|
||||
|
|
Loading…
Reference in a new issue