mirror of
https://github.com/torvalds/linux
synced 2024-10-15 07:47:34 +00:00
ata: libahci_platform: Export again ahci_platform_<en/dis>able_phys()
This reverts commit 6bb86fefa0
("libahci_platform: Staticize ahci_platform_<en/dis>able_phys()") we are
going to need ahci_platform_{enable,disable}_phys() in a subsequent
commit for ahci_brcm.c in order to properly control the PHY
initialization order.
Also make sure the function prototypes are declared in
include/linux/ahci_platform.h as a result.
Cc: stable@vger.kernel.org
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
8385d756e1
commit
84b032dbfd
|
@ -43,7 +43,7 @@ EXPORT_SYMBOL_GPL(ahci_platform_ops);
|
||||||
* RETURNS:
|
* RETURNS:
|
||||||
* 0 on success otherwise a negative error code
|
* 0 on success otherwise a negative error code
|
||||||
*/
|
*/
|
||||||
static int ahci_platform_enable_phys(struct ahci_host_priv *hpriv)
|
int ahci_platform_enable_phys(struct ahci_host_priv *hpriv)
|
||||||
{
|
{
|
||||||
int rc, i;
|
int rc, i;
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ static int ahci_platform_enable_phys(struct ahci_host_priv *hpriv)
|
||||||
}
|
}
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(ahci_platform_enable_phys);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ahci_platform_disable_phys - Disable PHYs
|
* ahci_platform_disable_phys - Disable PHYs
|
||||||
|
@ -81,7 +82,7 @@ static int ahci_platform_enable_phys(struct ahci_host_priv *hpriv)
|
||||||
*
|
*
|
||||||
* This function disables all PHYs found in hpriv->phys.
|
* This function disables all PHYs found in hpriv->phys.
|
||||||
*/
|
*/
|
||||||
static void ahci_platform_disable_phys(struct ahci_host_priv *hpriv)
|
void ahci_platform_disable_phys(struct ahci_host_priv *hpriv)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -90,6 +91,7 @@ static void ahci_platform_disable_phys(struct ahci_host_priv *hpriv)
|
||||||
phy_exit(hpriv->phys[i]);
|
phy_exit(hpriv->phys[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(ahci_platform_disable_phys);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ahci_platform_enable_clks - Enable platform clocks
|
* ahci_platform_enable_clks - Enable platform clocks
|
||||||
|
|
|
@ -19,6 +19,8 @@ struct ahci_host_priv;
|
||||||
struct platform_device;
|
struct platform_device;
|
||||||
struct scsi_host_template;
|
struct scsi_host_template;
|
||||||
|
|
||||||
|
int ahci_platform_enable_phys(struct ahci_host_priv *hpriv);
|
||||||
|
void ahci_platform_disable_phys(struct ahci_host_priv *hpriv);
|
||||||
int ahci_platform_enable_clks(struct ahci_host_priv *hpriv);
|
int ahci_platform_enable_clks(struct ahci_host_priv *hpriv);
|
||||||
void ahci_platform_disable_clks(struct ahci_host_priv *hpriv);
|
void ahci_platform_disable_clks(struct ahci_host_priv *hpriv);
|
||||||
int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv);
|
int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv);
|
||||||
|
|
Loading…
Reference in a new issue