From patchwork Mon Dec 3 18:34:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 203412 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id A38722C0085 for ; Tue, 4 Dec 2012 05:35:09 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751880Ab2LCSey (ORCPT ); Mon, 3 Dec 2012 13:34:54 -0500 Received: from mail-da0-f46.google.com ([209.85.210.46]:50377 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751879Ab2LCSex (ORCPT ); Mon, 3 Dec 2012 13:34:53 -0500 Received: by mail-da0-f46.google.com with SMTP id p5so1426137dak.19 for ; Mon, 03 Dec 2012 10:34:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=7ydVy2RmkhS69t0oDcripC+R14HHPd8C6aZNWQZeMow=; b=mJgheYlHsiO2mApQBBdx4ZBw94kZ/SOIP/H5xRhUYb+R6W/JDlG2NOfnq3xrlf/EOM cCjoHTYgycvd8ewfs/wmx6IH0uIdzzRVqcQPKceygMFDsns9JpE/z+UiI9O/D128rzLk TK2SC7CzGZx2UYdyqvdPpiKMqfiEy4kT0WEbNZmV+DS3NAbNqDHOYqZi/o43CcCVfPdz /7HbIT7HHv19X2zzilFljSRyZrIIZvHnJPs/pyeFD+Kiqnp4HF5vmHuiIyZzE85UPL01 ZZGYiY7dXUhpDxKEuXm545xK1KW7naJLMYg02KqMPb4X3qXQcQSYr9SXLw82gBw1J+e5 0DJg== Received: by 10.68.253.102 with SMTP id zz6mr31317487pbc.99.1354559693197; Mon, 03 Dec 2012 10:34:53 -0800 (PST) Received: from ld-irv-0074.broadcom.com (pv141010.reshsg.uci.edu. [169.234.141.10]) by mx.google.com with ESMTPS id xk2sm8431035pbc.45.2012.12.03.10.34.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 03 Dec 2012 10:34:52 -0800 (PST) From: Brian Norris To: Jeff Garzik Cc: , Tejun Heo , Brian Norris Subject: [PATCH v3 1/4] sata_highbank: utilize common ata_platform_remove_one() Date: Mon, 3 Dec 2012 10:34:39 -0800 Message-Id: <1354559682-30965-1-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 1.8.0 Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Signed-off-by: Brian Norris Acked-by: Tejun Heo --- v2: fix whitespace v3: Resend to fix a trivial conflict (Note: This patch is on its 3rd version, where others are v2.) drivers/ata/sata_highbank.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c index 75c0f3c..dc7d78e 100644 --- a/drivers/ata/sata_highbank.c +++ b/drivers/ata/sata_highbank.c @@ -368,16 +368,6 @@ err0: 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 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); static struct platform_driver ahci_highbank_driver = { - .remove = __devexit_p(ahci_highbank_remove), + .remove = ata_platform_remove_one, .driver = { .name = "highbank-ahci", .owner = THIS_MODULE,