summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2012-12-03 10:34:40 -0800
committerJeff Garzik <jgarzik@redhat.com>2012-12-03 13:53:31 -0500
commit1645bf1b51e5788a18cb6af7cfbb221ee17a6e8b (patch)
treee8b22550c6b5dac6ac55d3297969bc2676fe1aa0 /drivers/ata
parente2ec1817484d7448af2d8bf8a8acb144f87d5238 (diff)
downloadop-kernel-dev-1645bf1b51e5788a18cb6af7cfbb221ee17a6e8b.zip
op-kernel-dev-1645bf1b51e5788a18cb6af7cfbb221ee17a6e8b.tar.gz
pata_octeon_cf: perform host detach, removal on exit
This driver does not detach and remove its ata_host properly on device removal. Add the common .remove helper. Note: I do not know this driver well enough to ensure this is the right thing to do. Merge this patch with caution. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Acked-by: Tejun Heo <tj@kernel.org> Cc: David Daney <david.daney@cavium.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_octeon_cf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c
index 1d61d5d..d8df93b 100644
--- a/drivers/ata/pata_octeon_cf.c
+++ b/drivers/ata/pata_octeon_cf.c
@@ -921,6 +921,7 @@ free_cf_port:
static struct platform_driver octeon_cf_driver = {
.probe = octeon_cf_probe,
+ .remove = ata_platform_remove_one,
.driver = {
.name = DRV_NAME,
.owner = THIS_MODULE,
OpenPOWER on IntegriCloud