Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] drivers/scsi/nsp32.h: removal of old scsi code

Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

authored by

Michal Piotrowski and committed by
James Bottomley
16c8729a 76be12de

-42
-42
drivers/scsi/nsp32.h
··· 619 619 #define REQSACK_TIMEOUT_TIME 10000 /* max wait time for REQ/SACK assertion 620 620 or negation, 10000us == 10ms */ 621 621 622 - /************************************************************************** 623 - * Compatibility functions 624 - */ 625 - 626 - /* for Kernel 2.4 */ 627 - #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)) 628 - # define scsi_register_host(template) scsi_register_module(MODULE_SCSI_HA, template) 629 - # define scsi_unregister_host(template) scsi_unregister_module(MODULE_SCSI_HA, template) 630 - # define scsi_host_put(host) scsi_unregister(host) 631 - # define pci_name(pci_dev) ((pci_dev)->slot_name) 632 - 633 - typedef void irqreturn_t; 634 - # define IRQ_NONE /* */ 635 - # define IRQ_HANDLED /* */ 636 - # define IRQ_RETVAL(x) /* */ 637 - 638 - /* This is ad-hoc version of scsi_host_get_next() */ 639 - static inline struct Scsi_Host *scsi_host_get_next(struct Scsi_Host *host) 640 - { 641 - if (host == NULL) { 642 - return scsi_hostlist; 643 - } else { 644 - return host->next; 645 - } 646 - } 647 - 648 - /* This is ad-hoc version of scsi_host_hn_get() */ 649 - static inline struct Scsi_Host *scsi_host_hn_get(unsigned short hostno) 650 - { 651 - struct Scsi_Host *host; 652 - 653 - for (host = scsi_host_get_next(NULL); host != NULL; 654 - host = scsi_host_get_next(host)) { 655 - if (host->host_no == hostno) { 656 - break; 657 - } 658 - } 659 - 660 - return host; 661 - } 662 - #endif 663 - 664 622 #endif /* _NSP32_H */ 665 623 /* end */