File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,6 @@ static DEFINE_SPINLOCK(parportlist_lock);
49
49
static LIST_HEAD (all_ports );
50
50
static DEFINE_SPINLOCK (full_list_lock );
51
51
52
- static LIST_HEAD (drivers );
53
-
54
52
static DEFINE_MUTEX (registration_lock );
55
53
56
54
/* What you can do to a port that's gone away.. */
@@ -165,10 +163,6 @@ static int driver_check(struct device_driver *dev_drv, void *_port)
165
163
static void attach_driver_chain (struct parport * port )
166
164
{
167
165
/* caller has exclusive registration_lock */
168
- struct parport_driver * drv ;
169
-
170
- list_for_each_entry (drv , & drivers , list )
171
- drv -> attach (port );
172
166
173
167
/*
174
168
* call the driver_check function of the drivers registered in
@@ -191,10 +185,7 @@ static int driver_detach(struct device_driver *_drv, void *_port)
191
185
/* Call detach(port) for each registered driver. */
192
186
static void detach_driver_chain (struct parport * port )
193
187
{
194
- struct parport_driver * drv ;
195
188
/* caller has exclusive registration_lock */
196
- list_for_each_entry (drv , & drivers , list )
197
- drv -> detach (port );
198
189
199
190
/*
200
191
* call the detach function of the drivers registered in
Original file line number Diff line number Diff line change @@ -258,7 +258,6 @@ struct parport_driver {
258
258
int (* probe )(struct pardevice * );
259
259
struct device_driver driver ;
260
260
bool devmodel ;
261
- struct list_head list ;
262
261
};
263
262
264
263
#define to_parport_driver (n ) container_of(n, struct parport_driver, driver)
You can’t perform that action at this time.
0 commit comments