diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-26 16:28:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-26 16:28:47 -0400 |
commit | 2d986010ad13a00b83851238d52601d6092df40e (patch) | |
tree | 6a43ffd30290fc051435643d485ad12fb1448ed5 /drivers/message/fusion/mptfc.c | |
parent | 6b6a93c6876ea1c530d5d3f68e3678093a27fab0 (diff) | |
parent | e10fb91c4dc81a4ae47caf0828df152f600f2546 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-for-linus-2.6
Diffstat (limited to 'drivers/message/fusion/mptfc.c')
-rw-r--r-- | drivers/message/fusion/mptfc.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c index 353deb25e397..13771abea13f 100644 --- a/drivers/message/fusion/mptfc.c +++ b/drivers/message/fusion/mptfc.c | |||
@@ -83,19 +83,6 @@ static int mptfcDoneCtx = -1; | |||
83 | static int mptfcTaskCtx = -1; | 83 | static int mptfcTaskCtx = -1; |
84 | static int mptfcInternalCtx = -1; /* Used only for internal commands */ | 84 | static int mptfcInternalCtx = -1; /* Used only for internal commands */ |
85 | 85 | ||
86 | static struct device_attribute mptfc_queue_depth_attr = { | ||
87 | .attr = { | ||
88 | .name = "queue_depth", | ||
89 | .mode = S_IWUSR, | ||
90 | }, | ||
91 | .store = mptscsih_store_queue_depth, | ||
92 | }; | ||
93 | |||
94 | static struct device_attribute *mptfc_dev_attrs[] = { | ||
95 | &mptfc_queue_depth_attr, | ||
96 | NULL, | ||
97 | }; | ||
98 | |||
99 | static struct scsi_host_template mptfc_driver_template = { | 86 | static struct scsi_host_template mptfc_driver_template = { |
100 | .proc_name = "mptfc", | 87 | .proc_name = "mptfc", |
101 | .proc_info = mptscsih_proc_info, | 88 | .proc_info = mptscsih_proc_info, |
@@ -105,6 +92,7 @@ static struct scsi_host_template mptfc_driver_template = { | |||
105 | .slave_alloc = mptscsih_slave_alloc, | 92 | .slave_alloc = mptscsih_slave_alloc, |
106 | .slave_configure = mptscsih_slave_configure, | 93 | .slave_configure = mptscsih_slave_configure, |
107 | .slave_destroy = mptscsih_slave_destroy, | 94 | .slave_destroy = mptscsih_slave_destroy, |
95 | .change_queue_depth = mptscsih_change_queue_depth, | ||
108 | .eh_abort_handler = mptscsih_abort, | 96 | .eh_abort_handler = mptscsih_abort, |
109 | .eh_device_reset_handler = mptscsih_dev_reset, | 97 | .eh_device_reset_handler = mptscsih_dev_reset, |
110 | .eh_bus_reset_handler = mptscsih_bus_reset, | 98 | .eh_bus_reset_handler = mptscsih_bus_reset, |
@@ -116,7 +104,6 @@ static struct scsi_host_template mptfc_driver_template = { | |||
116 | .max_sectors = 8192, | 104 | .max_sectors = 8192, |
117 | .cmd_per_lun = 7, | 105 | .cmd_per_lun = 7, |
118 | .use_clustering = ENABLE_CLUSTERING, | 106 | .use_clustering = ENABLE_CLUSTERING, |
119 | .sdev_attrs = mptfc_dev_attrs, | ||
120 | }; | 107 | }; |
121 | 108 | ||
122 | /**************************************************************************** | 109 | /**************************************************************************** |
@@ -267,10 +254,6 @@ mptfc_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
267 | sh->sg_tablesize = numSGE; | 254 | sh->sg_tablesize = numSGE; |
268 | } | 255 | } |
269 | 256 | ||
270 | /* Set the pci device pointer in Scsi_Host structure. | ||
271 | */ | ||
272 | scsi_set_device(sh, &ioc->pcidev->dev); | ||
273 | |||
274 | spin_unlock_irqrestore(&ioc->FreeQlock, flags); | 257 | spin_unlock_irqrestore(&ioc->FreeQlock, flags); |
275 | 258 | ||
276 | hd = (MPT_SCSI_HOST *) sh->hostdata; | 259 | hd = (MPT_SCSI_HOST *) sh->hostdata; |