sata_highbank: utilize common ata_platform_remove_one()
Signed-off-by: Brian Norris <computersforpeace@gmail.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
56c1d3b77f
commit
e2ec181748
|
@ -368,16 +368,6 @@ err0:
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __devexit ahci_highbank_remove(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
struct device *dev = &pdev->dev;
|
|
||||||
struct ata_host *host = dev_get_drvdata(dev);
|
|
||||||
|
|
||||||
ata_host_detach(host);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef CONFIG_PM_SLEEP
|
#ifdef CONFIG_PM_SLEEP
|
||||||
static int ahci_highbank_suspend(struct device *dev)
|
static int ahci_highbank_suspend(struct device *dev)
|
||||||
{
|
{
|
||||||
|
@ -432,7 +422,7 @@ SIMPLE_DEV_PM_OPS(ahci_highbank_pm_ops,
|
||||||
ahci_highbank_suspend, ahci_highbank_resume);
|
ahci_highbank_suspend, ahci_highbank_resume);
|
||||||
|
|
||||||
static struct platform_driver ahci_highbank_driver = {
|
static struct platform_driver ahci_highbank_driver = {
|
||||||
.remove = __devexit_p(ahci_highbank_remove),
|
.remove = ata_platform_remove_one,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "highbank-ahci",
|
.name = "highbank-ahci",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
|
Loading…
Reference in New Issue