summaryrefslogtreecommitdiffstats
path: root/drivers/parport/share.c
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <linux@treblig.org>2024-05-02 16:48:21 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-07-03 16:44:22 +0200
commitf9a748fa5ce0958bea2a03c25f092fbc22e72c67 (patch)
treebe25977d02e3da2cc973d9211f1acfe74e4ae1c1 /drivers/parport/share.c
parent2f3fd91b9e6e744fce3cde4e1f8dd6f320548c0e (diff)
downloadlinux-f9a748fa5ce0958bea2a03c25f092fbc22e72c67.tar.gz
linux-f9a748fa5ce0958bea2a03c25f092fbc22e72c67.tar.bz2
linux-f9a748fa5ce0958bea2a03c25f092fbc22e72c67.zip
parport: Remove 'drivers' list
The list has been empty since: 'commit 3275158fa52a ("parport: remove use of devmodel")' This also means we can remove the 'list_head' from struct parport_driver. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Link: https://lore.kernel.org/r/20240502154823.67235-2-linux@treblig.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parport/share.c')
-rw-r--r--drivers/parport/share.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/parport/share.c b/drivers/parport/share.c
index b7148517e076..2d34f783b36e 100644
--- a/drivers/parport/share.c
+++ b/drivers/parport/share.c
@@ -49,8 +49,6 @@ static DEFINE_SPINLOCK(parportlist_lock);
static LIST_HEAD(all_ports);
static DEFINE_SPINLOCK(full_list_lock);
-static LIST_HEAD(drivers);
-
static DEFINE_MUTEX(registration_lock);
/* 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)
static void attach_driver_chain(struct parport *port)
{
/* caller has exclusive registration_lock */
- struct parport_driver *drv;
-
- list_for_each_entry(drv, &drivers, list)
- drv->attach(port);
/*
* call the driver_check function of the drivers registered in
@@ -191,10 +185,7 @@ static int driver_detach(struct device_driver *_drv, void *_port)
/* Call detach(port) for each registered driver. */
static void detach_driver_chain(struct parport *port)
{
- struct parport_driver *drv;
/* caller has exclusive registration_lock */
- list_for_each_entry(drv, &drivers, list)
- drv->detach(port);
/*
* call the detach function of the drivers registered in