lkml.org 
[lkml]   [2006]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Update an code example
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(&amp;reg->ictrl, 0);
+ WRT_REG_WORD(&amp;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(&amp;reg->ictrl);
- ha->flags.ints_enabled = 0;
+ RD_REG_WORD(&amp;ha->iobase->ictrl);
}
</programlisting>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-05-03 13:38    [W:0.064 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site