summaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2012-11-02 12:29:32 -0700
committerJeff Garzik <jgarzik@redhat.com>2012-12-03 05:15:17 -0500
commitb7db04d9264fca4b00e949da7b3180c50e243fca (patch)
tree038ef53ed19ec37d4a47ab55f21bccc79843673c /include/linux/libata.h
parent1896b15eddb4ff7266bccf3efa981885ecf80ab1 (diff)
downloadop-kernel-dev-b7db04d9264fca4b00e949da7b3180c50e243fca.zip
op-kernel-dev-b7db04d9264fca4b00e949da7b3180c50e243fca.tar.gz
libata: implement ata_platform_remove_one()
This relatively simple boiler-plate code is repeated in several platform drivers. We should implement a common version in libata. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index e931c9a..83ba0ab 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1115,6 +1115,10 @@ extern int ata_pci_device_resume(struct pci_dev *pdev);
#endif /* CONFIG_PM */
#endif /* CONFIG_PCI */
+struct platform_device;
+
+extern int ata_platform_remove_one(struct platform_device *pdev);
+
/*
* ACPI - drivers/ata/libata-acpi.c
*/
OpenPOWER on IntegriCloud