Messages in this thread Patch in this message | | | Date | Tue, 27 Oct 1998 15:59:35 +0100 (CET) | From | Andrea Arcangeli <> | Subject | parport_share in pre-2.1.127-2 |
| |
Index: linux/drivers/misc/parport_share.c diff -u linux/drivers/misc/parport_share.c:1.1.1.3 linux/drivers/misc/parport_share.c:1.1.1.1.12.3 --- linux/drivers/misc/parport_share.c:1.1.1.3 Tue Oct 27 08:40:16 1998 +++ linux/drivers/misc/parport_share.c Tue Oct 27 15:55:39 1998 @@ -105,7 +105,7 @@ tmp->ops = ops; tmp->number = portnum; memset (&tmp->probe_info, 0, sizeof (struct parport_device_info)); - tmp->cad_lock = RW_LOCK_UNLOCKED; + spin_lock_init(&tmp->cad_lock); spin_lock_init(&tmp->waitlist_lock); spin_lock_init(&tmp->pardevice_lock); RW_LOCK_UNLOCKED works for static and not dynamic allocation. Andrea Arcangeli
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |