Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1645bf1b authored by Brian Norris's avatar Brian Norris Committed by Jeff Garzik
Browse files

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: default avatarBrian Norris <computersforpeace@gmail.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Cc: David Daney <david.daney@cavium.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent e2ec1817
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -921,6 +921,7 @@ static int __devinit octeon_cf_probe(struct platform_device *pdev)

static struct platform_driver octeon_cf_driver = {
	.probe		= octeon_cf_probe,
	.remove		= ata_platform_remove_one,
	.driver		= {
		.name	= DRV_NAME,
		.owner	= THIS_MODULE,