forked from FritzOnFire/rcraid-dkms-arch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux-6.2.patch
30 lines (26 loc) · 1007 Bytes
/
linux-6.2.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/rc_init.c b/rc_init.c
index e7cf9a7..5c6defa 100644
--- a/rc_init.c
+++ b/rc_init.c
@@ -332,7 +332,6 @@ static Scsi_Host_Template driver_template = {
.module = THIS_MODULE,
.name = RC_DRIVER_NAME,
.proc_name = RC_DRIVER_NAME,
- .proc_dir = NULL,
.info = rc_info,
.ioctl = rc_ioctl,
.queuecommand = rc_queue_cmd,
@@ -740,7 +739,7 @@ rc_init_host(struct pci_dev *pdev)
return error;
rc_printk(RC_DEBUG, "rc_init_host: calling scsi_host_alloc\n");
- host_ptr = scsi_host_alloc (&driver_template, 32);
+ host_ptr = scsi_host_alloc(&driver_template, 32);
if (!host_ptr)
return -ENOMEM;
@@ -767,8 +766,6 @@ rc_init_host(struct pci_dev *pdev)
host_ptr->unique_id = 0;
host_ptr->this_id = -1; /* SCSI Id for the adapter itself */
- driver_template.present = 1; /* one virtual adapter */
-
error = scsi_add_host(host_ptr, &pdev->dev);
if (error) {