All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jamie Lenehan <lenehan@twibble.org>
To: Adrian Bunk <bunk@stusta.de>
Cc: linux-scsi@vger.kernel.org
Subject: [2.6 patch] SCSI dc395x.c: store pci device pointer
Date: Tue, 16 Nov 2004 07:26:33 +1100	[thread overview]
Message-ID: <20041115202633.GA26928@twibble.org> (raw)
In-Reply-To: <20041115202231.GA26873@twibble.org>

Store the PCI device pointer into the adapter control block. This is
used in the pci_map_*/pci_unmap_* calls and previously it would have
been set to NULL. This appears to be no problem for x86 but is a
problem for sparc64.

Signed-off-by: Jamie Lenehan <lenehan@twibble.org>

diff -du -r a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c
--- a/drivers/scsi/dc395x.c	2004-06-30 20:10:13.939701006 +1000
+++ b/drivers/scsi/dc395x.c	2004-06-30 20:10:38.683969224 +1000
@@ -4820,6 +4820,7 @@
 	}
  	acb = (struct AdapterCtlBlk*)scsi_host->hostdata;
  	acb->scsi_host = scsi_host;
+ 	acb->dev = dev;
 
 	/* initialise the adapter and everything we need */
  	if (adapter_init(acb, io_port_base, io_port_len, irq)) {

-- 
 Jamie Lenehan <lenehan@twibble.org>

  reply	other threads:[~2004-11-15 20:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-15  1:56 [2.6 patch] SCSI dc395x.c: make a function static Adrian Bunk
2004-11-15 20:22 ` Jamie Lenehan
2004-11-15 20:26   ` Jamie Lenehan [this message]
2004-11-15 20:28     ` [2.6 patch] SCSI dc395x.c: Fix type for irq and io ports Jamie Lenehan
2004-11-15 20:30       ` [2.6 patch] SCSI dc395x.c: Call pci_disable during cleanup Jamie Lenehan

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=20041115202633.GA26928@twibble.org \
    --to=lenehan@twibble.org \
    --cc=bunk@stusta.de \
    --cc=linux-scsi@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 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.