]> git.baikalelectronics.ru Git - kernel.git/commit
sata_nv: fix fallout of devres conversion
authorTejun Heo <htejun@gmail.com>
Thu, 17 May 2007 11:13:57 +0000 (13:13 +0200)
committerJeff Garzik <jeff@garzik.org>
Fri, 18 May 2007 00:57:10 +0000 (20:57 -0400)
commit92c48cf0c1ef5aa8cf8638dbd938961c9ccb636c
tree86133a124803121e15b65dec1873b4fac6a21c88
parent4b9d39aac210ac7433177e35b172e0aa637f1aac
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 <htejun@gmail.com>
Cc: Peer Chen <pchen@nvidia.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_nv.c