[PATCH 06/12] UBUNTU: ahci-platform: export ahci_platform_put_resources

Ike Panhc ike.pan at canonical.com
Tue Feb 25 09:25:31 UTC 2014


BugLink: http://launchpad.net/bugs/1282920

Signed-off-by: Ike Panhc <ike.pan at canonical.com>
---
 drivers/ata/ahci_platform.c   |    3 ++-
 include/linux/ahci_platform.h |    1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c
index 7f3f2ac..705ca0b 100644
--- a/drivers/ata/ahci_platform.c
+++ b/drivers/ata/ahci_platform.c
@@ -201,7 +201,7 @@ void ahci_platform_disable_resources(struct ahci_host_priv *hpriv)
 }
 EXPORT_SYMBOL_GPL(ahci_platform_disable_resources);
 
-static void ahci_platform_put_resources(struct device *dev, void *res)
+void ahci_platform_put_resources(struct device *dev, void *res)
 {
 	struct ahci_host_priv *hpriv = res;
 	int c;
@@ -209,6 +209,7 @@ static void ahci_platform_put_resources(struct device *dev, void *res)
 	for (c = 0; c < AHCI_MAX_CLKS && hpriv->clks[c]; c++)
 		clk_put(hpriv->clks[c]);
 }
+EXPORT_SYMBOL_GPL(ahci_platform_put_resources);
 
 /**
  *	ahci_platform_get_resources - Get platform resources
diff --git a/include/linux/ahci_platform.h b/include/linux/ahci_platform.h
index b80c51c..680a7c57 100644
--- a/include/linux/ahci_platform.h
+++ b/include/linux/ahci_platform.h
@@ -44,6 +44,7 @@ int ahci_platform_enable_resources(struct ahci_host_priv *hpriv);
 void ahci_platform_disable_resources(struct ahci_host_priv *hpriv);
 struct ahci_host_priv *ahci_platform_get_resources(
 	struct platform_device *pdev);
+void ahci_platform_put_resources(struct device *dev, void *res);
 int ahci_platform_init_host(struct platform_device *pdev,
 			    struct ahci_host_priv *hpriv,
 			    const struct ata_port_info *pi_template,
-- 
1.7.9.5





More information about the kernel-team mailing list