Skip to content

Commit ed06e05

Browse files
Dr. David Alan Gilbertgregkh
authored andcommitted
parport: Remove attach function pointer
The attach function pointers haven't actually been called since: 'commit 3275158 ("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 <[email protected]> Acked-by: Sudip Mukherjee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f9a748f commit ed06e05

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/linux/parport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ struct parport {
252252

253253
struct parport_driver {
254254
const char *name;
255-
void (*attach) (struct parport *);
256255
void (*detach) (struct parport *);
257256
void (*match_port)(struct parport *);
258257
int (*probe)(struct pardevice *);

0 commit comments

Comments
 (0)