diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-06-28 18:31:03 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-06-28 18:31:03 +0000 |
commit | 32d204697861b907520e94f82e392d3e7d6d661a (patch) | |
tree | 7bad5a228621b81780b7712982b6a979ce2df424 /sys/dev/pci/ips.c | |
parent | 12135c2c16aaab7651a7b1c48ed35586452fadcc (diff) |
Remove all adapter-specific 'struct scsi_device's. They are never used. First
step in elminating 'struct scsi_device' entirely.
Spotted and initial diff from matthew@.
ok matthew@ dlg@ deraadt@ marco@ miod@
Diffstat (limited to 'sys/dev/pci/ips.c')
-rw-r--r-- | sys/dev/pci/ips.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c index 55257c7aa90..efd515c4f23 100644 --- a/sys/dev/pci/ips.c +++ b/sys/dev/pci/ips.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ips.c,v 1.98 2010/06/15 04:11:34 dlg Exp $ */ +/* $OpenBSD: ips.c,v 1.99 2010/06/28 18:31:02 krw Exp $ */ /* * Copyright (c) 2006, 2007, 2009 Alexander Yurchenko <grange@openbsd.org> @@ -504,13 +504,6 @@ static struct scsi_adapter ips_scsi_adapter = { ips_scsi_ioctl }; -static struct scsi_device ips_scsi_device = { - NULL, - NULL, - NULL, - NULL -}; - static struct scsi_adapter ips_scsi_pt_adapter = { ips_scsi_pt_cmd, scsi_minphys, @@ -519,13 +512,6 @@ static struct scsi_adapter ips_scsi_pt_adapter = { NULL }; -static struct scsi_device ips_scsi_pt_device = { - NULL, - NULL, - NULL, - NULL -}; - static const struct pci_matchid ips_ids[] = { { PCI_VENDOR_IBM, PCI_PRODUCT_IBM_SERVERAID }, { PCI_VENDOR_IBM, PCI_PRODUCT_IBM_SERVERAID2 }, @@ -743,7 +729,6 @@ ips_attach(struct device *parent, struct device *self, void *aux) sc->sc_scsi_link.openings = sc->sc_nccbs / sc->sc_nunits; sc->sc_scsi_link.adapter_target = sc->sc_nunits; sc->sc_scsi_link.adapter_buswidth = sc->sc_nunits; - sc->sc_scsi_link.device = &ips_scsi_device; sc->sc_scsi_link.adapter = &ips_scsi_adapter; sc->sc_scsi_link.adapter_softc = sc; @@ -787,7 +772,6 @@ ips_attach(struct device *parent, struct device *self, void *aux) link->openings = 1; link->adapter_target = IPS_MAXTARGETS; link->adapter_buswidth = lastarget + 1; - link->device = &ips_scsi_pt_device; link->adapter = &ips_scsi_pt_adapter; link->adapter_softc = pt; |