Skip to contentSkip to conversation

Update code example in deviceiobook.tmpl

PATCH New Henne 1 participant 1 message Apr 30, 2006

Subsystems (2)
lore
Share & tools
lore

Henne

author
#0 lore raw

PATCH 1/1 Update code example in deviceiobook.tmpl

From: Henrik Kretzschmar <[email protected]>

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.

---

Documentation/DocBook/deviceiobook.tmpl +2 -7
@@ -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>
 

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors