mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-08 14:23:19 +00:00
phy: brcm-sata: Return proper error if brcm_sata_phy_init fails
Return proper error instead of 0 if brcm_sata_phy_init fails. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
This commit is contained in:
parent
1766e7b376
commit
bf8ca651e1
@ -367,7 +367,7 @@ static int brcm_sata_phy_init(struct phy *phy)
|
||||
rc = -ENODEV;
|
||||
};
|
||||
|
||||
return 0;
|
||||
return rc;
|
||||
}
|
||||
|
||||
static const struct phy_ops phy_ops = {
|
||||
|
Loading…
Reference in New Issue
Block a user