* [KJ] [PATCH] Update code example in deviceiobook.tmpl
@ 2006-04-30 13:36 Henne
0 siblings, 0 replies; only message in thread
From: Henne @ 2006-04-30 13:36 UTC (permalink / raw)
To: kernel-janitors
From: Henrik Kretzschmar <henne@nachtwindheim.de>
Update an example function to be in sync with the actual kernel.
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>
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-04-30 13:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-30 13:36 [KJ] [PATCH] Update code example in deviceiobook.tmpl Henne
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.