From: Matt Reimer <mreimer@vpop.net>
To: linux-kernel@vger.kernel.org
Cc: Matt Reimer <mreimer@vpop.net>
Subject: [PATCH 2/2] ds1wm: disable interrupts when turning off ds1wm
Date: Tue, 1 May 2007 15:00:56 -0700 [thread overview]
Message-ID: <11780568573988-git-send-email-mreimer@vpop.net> (raw)
In-Reply-To: <1178056856620-git-send-email-mreimer@vpop.net>
Disable interrupts when turning off ds1wm.
Signed-off-by: Matt Reimer <mreimer@vpop.net>
---
drivers/w1/masters/ds1wm.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/masters/ds1wm.c
index 8b08609..1940691 100644
--- a/drivers/w1/masters/ds1wm.c
+++ b/drivers/w1/masters/ds1wm.c
@@ -237,6 +237,10 @@ static void ds1wm_down(struct ds1wm_data *ds1wm_data)
{
ds1wm_reset(ds1wm_data);
+ /* Disable interrupts. */
+ ds1wm_write_register(ds1wm_data, DS1WM_INT_EN,
+ ds1wm_data->active_high ? DS1WM_INTEN_IAS : 0);
+
if (ds1wm_data->pdata->disable)
ds1wm_data->pdata->disable(ds1wm_data->pdev);
--
1.5.1.1
prev parent reply other threads:[~2007-05-01 22:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-01 22:00 [PATCH 1/2] ds1wm: simplify platform_data Matt Reimer
2007-05-01 22:00 ` Matt Reimer [this message]
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=11780568573988-git-send-email-mreimer@vpop.net \
--to=mreimer@vpop.net \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®