public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2o struct change updates
@ 2001-10-13  8:18 Mohammad A. Haque
  2001-10-13 13:50 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Mohammad A. Haque @ 2001-10-13  8:18 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds

[-- Attachment #1: Type: text/plain, Size: 535 bytes --]

i2o struct change updates  to make i2o compile once again

-- 

=====================================================================
Mohammad A. Haque                              http://www.haque.net/ 
                                               mhaque@haque.net

  "Alcohol and calculus don't mix.             Project Lead
   Don't drink and derive." --Unknown          http://wm.themes.org/
                                               batmanppc@themes.org
=====================================================================

[-- Attachment #2: i2o-struct-2413p2-updates.diff --]
[-- Type: text/plain, Size: 2216 bytes --]

--- linux/drivers/i2o/i2o_pci.c.orig	Sun Aug 12 14:16:18 2001
+++ linux/drivers/i2o/i2o_pci.c	Sat Oct 13 04:02:57 2001
@@ -162,7 +162,7 @@
 	c->bus.pci.queue_buggy = 0;
 	c->bus.pci.dpt = 0;
 	c->bus.pci.short_req = 0;
-	c->bus.pci.pdev = dev;
+	c->pdev = dev;
 
 	c->irq_mask = (volatile u32 *)(mem+0x34);
 	c->post_port = (volatile u32 *)(mem+0x40);
--- linux/drivers/i2o/i2o_core.c.orig	Thu Aug 16 12:50:24 2001
+++ linux/drivers/i2o/i2o_core.c	Sat Oct 13 04:06:08 2001
@@ -1924,12 +1924,12 @@
 		if(iop->status_block->current_mem_size < iop->status_block->desired_mem_size)
 		{
 			struct resource *res = &iop->mem_resource;
-			res->name = iop->bus.pci.pdev->bus->name;
+			res->name = iop->pdev->bus->name;
 			res->flags = IORESOURCE_MEM;
 			res->start = 0;
 			res->end = 0;
 			printk("%s: requires private memory resources.\n", iop->name);
-			root = pci_find_parent_resource(iop->bus.pci.pdev, res);
+			root = pci_find_parent_resource(iop->pdev, res);
 			if(root==NULL)
 				printk("Can't find parent resource!\n");
 			if(root && allocate_resource(root, res, 
@@ -1950,12 +1950,12 @@
 		if(iop->status_block->current_io_size < iop->status_block->desired_io_size)
 		{
 			struct resource *res = &iop->io_resource;
-			res->name = iop->bus.pci.pdev->bus->name;
+			res->name = iop->pdev->bus->name;
 			res->flags = IORESOURCE_IO;
 			res->start = 0;
 			res->end = 0;
 			printk("%s: requires private memory resources.\n", iop->name);
-			root = pci_find_parent_resource(iop->bus.pci.pdev, res);
+			root = pci_find_parent_resource(iop->pdev, res);
 			if(root==NULL)
 				printk("Can't find parent resource!\n");
 			if(root &&  allocate_resource(root, res, 
--- linux/include/linux/i2o.h.orig	Sat Oct 13 03:40:03 2001
+++ linux/include/linux/i2o.h	Sat Oct 13 04:13:23 2001
@@ -30,6 +30,7 @@
 
 #include <asm/semaphore.h>	/* Needed for MUTEX init macros */
 #include <linux/config.h>
+#include <linux/ioport.h>
 #include <linux/notifier.h>
 #include <asm/atomic.h>
 
--- linux/drivers/i2o/i2o_block.c.orig	Mon Sep 10 15:42:31 2001
+++ linux/drivers/i2o/i2o_block.c	Sat Oct 13 04:15:18 2001
@@ -1989,7 +1989,6 @@
 
 void cleanup_module(void)
 {
-	struct gendisk *gdp;
 	int i;
 	
 	if(evt_running) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] i2o struct change updates
  2001-10-13  8:18 [PATCH] i2o struct change updates Mohammad A. Haque
@ 2001-10-13 13:50 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2001-10-13 13:50 UTC (permalink / raw)
  To: Mohammad A. Haque; +Cc: linux-kernel, Linus Torvalds

> i2o struct change updates  to make i2o compile once again

I've got the relevant i2o merge queued for Linus already


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-13 13:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-13  8:18 [PATCH] i2o struct change updates Mohammad A. Haque
2001-10-13 13:50 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox