[SCSI] ips: PCI API cleanups
authorJeff Garzik <jeff@garzik.org>
Fri, 14 Dec 2007 00:14:09 +0000 (16:14 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jan 2008 00:28:01 +0000 (18:28 -0600)
commit21e1a5f26c437591f67779a97e5cc95ebbb02e90
tree15d957a00a1e7749ad6cb3a6566b7582cd0deabd
parent2f277d6a719064f830211d0a0e104a37da2ac116
[SCSI] ips: PCI API cleanups

* pass Scsi_Host to ips_remove_device() via pci_set_drvdata(),
  allowing us to eliminate the ips_ha[] search loop and call
  ips_release() directly.

* call pci_{request,release}_regions() and eliminate individual
  request/release_[mem_]region() calls

* call pci_disable_device(), paired with pci_enable_device()

* s/0/NULL/ in a few places

* check ioremap() return value

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Acked-by: "Salyzyn, Mark" <mark_salyzyn@adaptec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/ips.c