From: Dr. David Alan Gilbert Date: Thu, 2 May 2024 15:48:22 +0000 (+0100) Subject: parport: Remove attach function pointer X-Git-Tag: io_uring-6.11-20240722~8^2~44 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=ed06e054906c5e7853a36d9ddad8fc94dbb8c252;p=linux-block.git parport: Remove attach function pointer The attach function pointers haven't actually been called since: 'commit 3275158fa52a ("parport: remove use of devmodel")' topped adding entries to the drivers list. If you're converting a driver, look at the 'match_port' function pointer instead. (There are lots of comment references to 'attach' all over, but they probably need some deeper understanding to check the semantics to see if they can be replaced by match_port). Signed-off-by: Dr. David Alan Gilbert Acked-by: Sudip Mukherjee Link: https://lore.kernel.org/r/20240502154823.67235-3-linux@treblig.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/parport.h b/include/linux/parport.h index 2a4424b60156..190de3569e25 100644 --- a/include/linux/parport.h +++ b/include/linux/parport.h @@ -252,7 +252,6 @@ struct parport { struct parport_driver { const char *name; - void (*attach) (struct parport *); void (*detach) (struct parport *); void (*match_port)(struct parport *); int (*probe)(struct pardevice *);