From: Henne <henne@nachtwindheim.de>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Update an code example
Date: Wed, 03 May 2006 13:41:21 +0200 [thread overview]
Message-ID: <445896E1.4000000@nachtwindheim.de> (raw)
From: Henrik Kretzschmar <henne@nachtwindheim.de>
Update an example function in the deviceiobook to be in sync with
actual qla1280c .
The change in the driver happend in Aug-2005 and is a bit clearer.
Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
---
--- linux-2.6.17-rc3/Documentation/DocBook/deviceiobook.tmpl 2006-04-27 08:39:13.000000000 +0200
+++ linux/Documentation/DocBook/deviceiobook.tmpl 2006-04-30 15:18:02.000000000 +0200
@@ -176,18 +176,13 @@
static inline void
qla1280_disable_intrs(struct scsi_qla_host *ha)
{
- struct device_reg *reg;
-
- reg = ha->iobase;
- /* disable risc and host interrupts */
- WRT_REG_WORD(&reg->ictrl, 0);
+ WRT_REG_WORD(&ha->iobase->ictrl, 0);
/*
* The following read will ensure that the above write
* has been received by the device before we return from this
* function.
*/
- RD_REG_WORD(&reg->ictrl);
- ha->flags.ints_enabled = 0;
+ RD_REG_WORD(&ha->iobase->ictrl);
}
</programlisting>
reply other threads:[~2006-05-03 11:35 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=445896E1.4000000@nachtwindheim.de \
--to=henne@nachtwindheim.de \
--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;
as well as URLs for NNTP newsgroup(s).