Patchwork [1/2] ahci: un-staticize ahci_dev_classify

login
register
mail settings
Submitter Mark Langsdorf
Date Aug. 17, 2012, 2:51 p.m.
Message ID <1345215111-11051-2-git-send-email-mark.langsdorf@calxeda.com>
Download mbox | patch
Permalink /patch/178244/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Mark Langsdorf - Aug. 17, 2012, 2:51 p.m.
From: Rob Herring <rob.herring@calxeda.com>

Make ahci_dev_classify available to the ahci platform driver for custom
hard reset function.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
---
 drivers/ata/ahci.h    |    1 +
 drivers/ata/libahci.c |    3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
Jeff Garzik - Aug. 17, 2012, 5:27 p.m.
On 08/17/2012 10:51 AM, Mark Langsdorf wrote:
> From: Rob Herring <rob.herring@calxeda.com>
>
> Make ahci_dev_classify available to the ahci platform driver for custom
> hard reset function.
>
> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
> ---
>   drivers/ata/ahci.h    |    1 +
>   drivers/ata/libahci.c |    3 ++-
>   2 files changed, 3 insertions(+), 1 deletion(-)

applied



--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h
index c2594dd..57eb1c2 100644
--- a/drivers/ata/ahci.h
+++ b/drivers/ata/ahci.h
@@ -320,6 +320,7 @@  extern struct device_attribute *ahci_sdev_attrs[];
 extern struct ata_port_operations ahci_ops;
 extern struct ata_port_operations ahci_pmp_retry_srst_ops;
 
+unsigned int ahci_dev_classify(struct ata_port *ap);
 void ahci_fill_cmd_slot(struct ahci_port_priv *pp, unsigned int tag,
 			u32 opts);
 void ahci_save_initial_config(struct device *dev,
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
index f9eaa82..555c07a 100644
--- a/drivers/ata/libahci.c
+++ b/drivers/ata/libahci.c
@@ -1139,7 +1139,7 @@  static void ahci_dev_config(struct ata_device *dev)
 	}
 }
 
-static unsigned int ahci_dev_classify(struct ata_port *ap)
+unsigned int ahci_dev_classify(struct ata_port *ap)
 {
 	void __iomem *port_mmio = ahci_port_base(ap);
 	struct ata_taskfile tf;
@@ -1153,6 +1153,7 @@  static unsigned int ahci_dev_classify(struct ata_port *ap)
 
 	return ata_dev_classify(&tf);
 }
+EXPORT_SYMBOL_GPL(ahci_dev_classify);
 
 void ahci_fill_cmd_slot(struct ahci_port_priv *pp, unsigned int tag,
 			u32 opts)