Skip to content

Commit

Permalink
ahci: un-staticize ahci_dev_classify
Browse files Browse the repository at this point in the history
Make ahci_dev_classify available to the ahci platform driver for custom
hard reset function.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Rob Herring authored and Jeff Garzik committed Aug 17, 2012
1 parent d987569 commit bbb4ab4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/ata/ahci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion drivers/ata/libahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit bbb4ab4

Please sign in to comment.