From: Brian Norris Date: Mon, 3 Dec 2012 18:34:40 +0000 (-0800) Subject: pata_octeon_cf: perform host detach, removal on exit X-Git-Tag: v3.8~311^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1645bf1b51e5788a18cb6af7cfbb221ee17a6e8b;p=platform%2Fkernel%2Flinux-amlogic.git 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 Acked-by: Tejun Heo Cc: David Daney Signed-off-by: Jeff Garzik --- 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,