diff options
author | Tejun Heo <tj@kernel.org> | 2014-07-30 12:49:04 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-07-30 12:49:04 -0400 |
commit | e8f781836dc3335b5533f6e177a105bbe3ee7345 (patch) | |
tree | b6f05b7bf6e69bcc436ab894b7dc84c28c746d1a /drivers/ata/libahci_platform.c | |
parent | 19f5be0f40922717e2b6e39a9822e7e7f30fd81f (diff) | |
parent | 1a112d10f03e83fb3a2fdc4c9165865dec8a3ca6 (diff) | |
download | blackbird-op-linux-e8f781836dc3335b5533f6e177a105bbe3ee7345.tar.gz blackbird-op-linux-e8f781836dc3335b5533f6e177a105bbe3ee7345.zip |
Merge branch 'for-3.16-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata into for-3.17
The scheduled ahci platform patches depend on change in
for-3.16-fixes. Pull it into for-3.17.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/libahci_platform.c')
-rw-r--r-- | drivers/ata/libahci_platform.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c index a958a2b8fd93..28840a2f470f 100644 --- a/drivers/ata/libahci_platform.c +++ b/drivers/ata/libahci_platform.c @@ -250,8 +250,13 @@ struct ahci_host_priv *ahci_platform_get_resources(struct platform_device *pdev) if (IS_ERR(hpriv->phy)) { rc = PTR_ERR(hpriv->phy); switch (rc) { - case -ENODEV: case -ENOSYS: + /* No PHY support. Check if PHY is required. */ + if (of_find_property(dev->of_node, "phys", NULL)) { + dev_err(dev, "couldn't get sata-phy: ENOSYS\n"); + goto err_out; + } + case -ENODEV: /* continue normally */ hpriv->phy = NULL; break; |