Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38939
b: refs/heads/master
c: 16c8729
h: refs/heads/master
i:
  38937: cb9d262
  38935: 6b4e88b
v: v3
  • Loading branch information
Michal Piotrowski authored and James Bottomley committed Sep 26, 2006
1 parent 1658c69 commit c8fa211
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 43 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76be12de87c4601cf35a88f83d199b940d995c62
refs/heads/master: 16c8729a46b599bca647839556a33d0b59522e94
42 changes: 0 additions & 42 deletions trunk/drivers/scsi/nsp32.h
Original file line number Diff line number Diff line change
Expand Up @@ -619,47 +619,5 @@ typedef struct _nsp32_hw_data {
#define REQSACK_TIMEOUT_TIME 10000 /* max wait time for REQ/SACK assertion
or negation, 10000us == 10ms */

/**************************************************************************
* Compatibility functions
*/

/* for Kernel 2.4 */
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0))
# define scsi_register_host(template) scsi_register_module(MODULE_SCSI_HA, template)
# define scsi_unregister_host(template) scsi_unregister_module(MODULE_SCSI_HA, template)
# define scsi_host_put(host) scsi_unregister(host)
# define pci_name(pci_dev) ((pci_dev)->slot_name)

typedef void irqreturn_t;
# define IRQ_NONE /* */
# define IRQ_HANDLED /* */
# define IRQ_RETVAL(x) /* */

/* This is ad-hoc version of scsi_host_get_next() */
static inline struct Scsi_Host *scsi_host_get_next(struct Scsi_Host *host)
{
if (host == NULL) {
return scsi_hostlist;
} else {
return host->next;
}
}

/* This is ad-hoc version of scsi_host_hn_get() */
static inline struct Scsi_Host *scsi_host_hn_get(unsigned short hostno)
{
struct Scsi_Host *host;

for (host = scsi_host_get_next(NULL); host != NULL;
host = scsi_host_get_next(host)) {
if (host->host_no == hostno) {
break;
}
}

return host;
}
#endif

#endif /* _NSP32_H */
/* end */

0 comments on commit c8fa211

Please sign in to comment.