pata_octeon_cf: perform host detach, removal on exit
authorBrian Norris <computersforpeace@gmail.com>
Mon, 3 Dec 2012 18:34:40 +0000 (10:34 -0800)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 3 Dec 2012 18:53:31 +0000 (13:53 -0500)
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>
drivers/ata/pata_octeon_cf.c

index 1d61d5d278fa4412130d7dcd1336cd45bc9662aa..d8df93b2a0289db54a8bb1cdfb8c1be8eab2d2d1 100644 (file)
@@ -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,