Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Tue, 31 Mar 2009
 09:50:35 -0700
Received: from psmtp.com ([64.18.0.56]) by mail.onstor.com with Microsoft
 SMTPSVC(6.0.3790.3959);	 Tue, 31 Mar 2009 09:50:35 -0700
Received: from source ([213.58.128.207]) by exprod5mx260.postini.com
 ([64.18.4.10]) with SMTP;	Tue, 31 Mar 2009 09:50:35 PDT
Received: from localhost.localdomain ([127.0.0.1]:57553 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S20024394AbZCaQpD
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Tue, 31 Mar 2009 17:45:03 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 31 Mar 2009 17:44:46
 +0100 (BST)
Received: from mail-fx0-f175.google.com ([209.85.220.175]:50859 "EHLO
	mail-fx0-f175.google.com") by ftp.linux-mips.org with ESMTP	id
 S20023873AbZCaQok (ORCPT <rfc822;linux-mips@linux-mips.org>);	Tue, 31 Mar
 2009 17:44:40 +0100
Received: by fxm23 with SMTP id 23so2669397fxm.0        for
 <linux-mips@linux-mips.org>; Tue, 31 Mar 2009 09:44:34 -0700 (PDT)
Received: by 10.103.213.10 with SMTP id p10mr2357452muq.49.1238517874497;
        Tue, 31 Mar 2009 09:44:34 -0700 (PDT)
Received: from localhost.localdomain (p5496E20F.dip.t-dialin.net
 [84.150.226.15])        by mx.google.com with ESMTPS id
 t10sm12414544muh.29.2009.03.31.09.44.33        (version=TLSv1/SSLv3
 cipher=RC4-MD5);        Tue, 31 Mar 2009 09:44:34 -0700 (PDT)
From: Manuel Lauss <mano@roarinelk.homelinux.net>
To: Linux-MIPS <linux-mips@linux-mips.org>
CC: Manuel Lauss <mano@roarinelk.homelinux.net>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Tue, 31 Mar 2009 09:44:36 -0700
Subject: [PATCH] au1xxx-ide: fix build with CONFIG_PM
Thread-Topic: [PATCH] au1xxx-ide: fix build with CONFIG_PM
Thread-Index: AcmyINBE3G8Ukg6/SJC7zAJz1PnMNg==
Message-ID: <1238517876-4724-1-git-send-email-mano@roarinelk.homelinux.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 31 Mar 2009 16:50:35.0155 (UTC)
 FILETIME=[CFC96630:01C9B220]
domainkey-signature: a=rsa-sha1; c=nofws;        d=googlemail.com; s=gamma;
        h=sender:from:to:cc:subject:date:message-id:x-mailer;
        b=dFyOcl0Qbij/cXvybVMpRFOs3Mrkr8vLTUGbsHfXGyndGw8FRUbcMqNtajFjCrlxOr
         I2x4rrM/nC28AkYdgXu7rqEIvb5KI4bZXXf3FiNm9vFBrvfyXa7avth1lIKLcJIG+Gul
         2eVqh1+y7VIta3azDOt9HE+asBrq1ajofMPGI=
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:51.63583/99.90000 CV:99.9000 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-neptune: 1/1/1.00/94
dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlemail.com; s=gamma;
        h=domainkey-signature:received:received:sender:from:to:cc:subject
         :date:message-id:x-mailer;
        bh=VxL010dIDZVMVkLNAA0yodbJ2I3lur2OfBRxBHDjv6U=;
        b=rT6vVGoXvi+JsHXXW+NyTt35B3KoGrePAnGWA0l+rW3WwWuDR+RIZRUK1QgcK51+ej
         m4mDbOcw/gz5+4f6Cg9csVN8LauT1gp97OZqxBZ6VU7zgP/oDY8u1XdZElHOz712ydXh
         cvkQRLVc6zT2P30BEVuZYb20cSIN+i5gU3Su0=
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-ems-stamp: JxRcOoBZBnpfTygdo9DnPw==
x-list: linux-mips
x-archive-position: 22206
x-ecartis-version: Ecartis v1.0.0
x-original-sender: mano@roarinelk.homelinux.net
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

au1xxx_ide_dev_t is never defined;  get rid of all PM stuff as
well since it is not in the driver source anyway.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
---
Tested on DB1200.

 arch/mips/include/asm/mach-au1x00/au1xxx_ide.h |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/arch/mips/include/asm/mach-au1x00/au1xxx_ide.h b/arch/mips/inc=
lude/asm/mach-au1x00/au1xxx_ide.h
index 60638b8..5656c72 100644
--- a/arch/mips/include/asm/mach-au1x00/au1xxx_ide.h
+++ b/arch/mips/include/asm/mach-au1x00/au1xxx_ide.h
@@ -46,20 +46,6 @@
 #define CONFIG_BLK_DEV_IDE_AU1XXX_BURSTABLE_ON	0
 #endif
=20
-#ifdef CONFIG_PM
-/*
- * This will enable the device to be powered up when write() or read()
- * is called. If this is not defined, the driver will return -EBUSY.
- */
-#define WAKE_ON_ACCESS 1
-
-typedef struct {
-	spinlock_t		lock;	/* Used to block on state transitions */
-	au1xxx_power_dev_t	*dev;	/* Power Managers device structure */
-	unsigned		stopped; /* Used to signal device is stopped */
-} pm_state;
-#endif
-
 typedef struct {
 	u32			tx_dev_id, rx_dev_id, target_dev_id;
 	u32			tx_chan, rx_chan;
@@ -72,9 +58,6 @@ typedef struct {
 #endif
 	int			irq;
 	u32			regbase;
-#ifdef CONFIG_PM
-	pm_state		pm;
-#endif
 } _auide_hwif;
=20
 /*************************************************************************=
*****/
--=20
1.6.2


