linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: linux-sh@vger.kernel.org
Subject: [patch 1/2] sh: Retrieve the wakeup flag from irq_data
Date: Fri, 25 Mar 2011 13:56:04 +0000	[thread overview]
Message-ID: <20110325135542.970002118@linutronix.de> (raw)

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 drivers/sh/intc/core.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: linux-2.6-tip/drivers/sh/intc/core.c
=================================--- linux-2.6-tip.orig/drivers/sh/intc/core.c
+++ linux-2.6-tip/drivers/sh/intc/core.c
@@ -427,13 +427,12 @@ static int intc_suspend(struct sys_devic
 	case PM_EVENT_SUSPEND:
 		/* enable wakeup irqs belonging to this intc controller */
 		for_each_active_irq(irq) {
-			desc = irq_to_desc(irq);
 			data = irq_get_irq_data(irq);
 			chip = irq_data_get_irq_chip(data);
 
 			if (chip != &d->chip)
 				continue;
-			if ((desc->status & IRQ_WAKEUP))
+			if (irqd_is_wakeup_set(data))
 				chip->irq_enable(data);
 		}
 		break;



                 reply	other threads:[~2011-03-25 13:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110325135542.970002118@linutronix.de \
    --to=tglx@linutronix.de \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).