From 50f734efbce723e055aeef7faf6f08946fb46624 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Tue, 2 Mar 2004 19:07:49 -0800 Subject: [PATCH] parport: get rid of parport_enumerate parport_enumerate() is gone. The last caller was under ifdef that never had been true. Function itself is removed, port list handling cleaned up (now we can do that, since drivers don't mess with the list directly), tons of racy crap removed from parport/share.c --- include/linux/parport.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'include') diff --git a/include/linux/parport.h b/include/linux/parport.h index ddfd7a3f9daf..c0aa7835100f 100644 --- a/include/linux/parport.h +++ b/include/linux/parport.h @@ -294,7 +294,7 @@ struct parport { struct pardevice *waithead; struct pardevice *waittail; - struct parport *next; + struct list_head list; unsigned int flags; void *sysctl_table; @@ -342,11 +342,6 @@ void parport_announce_port (struct parport *port); /* Unregister a port. */ extern void parport_remove_port(struct parport *port); -/* parport_enumerate returns a pointer to the linked list of all the - ports in this machine. DON'T USE THIS. Use - parport_register_driver instead. */ -struct parport *parport_enumerate(void); - /* Register a new high-level driver. */ extern int parport_register_driver (struct parport_driver *); -- cgit v1.2.3