From: Tejun Heo Date: Thu, 17 May 2007 11:13:57 +0000 (+0200) Subject: sata_nv: fix fallout of devres conversion X-Git-Tag: v2.6.22-rc2~14^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1daf9ce74e0e0ef8ffde800ab495339458c3375f;p=pandora-kernel.git sata_nv: fix fallout of devres conversion As with all other drivers, sata_nv's hpriv is allocated with devm_kzalloc() and there's no need to free it explicitly. Kill nv_remove_one() which incorrectly used kfree() instead of devm_kfree() and use ata_pci_remove_one() directly. Original fix is from Peer Chen. Signed-off-by: Tejun Heo Cc: Peer Chen Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed