parport->dev driver model support
Currently a parport_driver can't get a handle on the device node for the underlying parport (PNPACPI, PCI, etc). That prevents correct placement of sysfs child nodes, which can affect things like power management. This patch adds a field to "struct parport" pointing to that device node, and updates non-legacy port drivers to initialize that device pointer. That field replaces the analagous PCI-only support in parport_pc. [akpm@linux-foundation.org: fix powerpc build] Signed-off-by:David Brownell <dbrownell@users.sourceforge.net> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- drivers/parport/parport_cs.c 1 addition, 1 deletiondrivers/parport/parport_cs.c
- drivers/parport/parport_mfc3.c 1 addition, 0 deletionsdrivers/parport/parport_mfc3.c
- drivers/parport/parport_pc.c 17 additions, 14 deletionsdrivers/parport/parport_pc.c
- drivers/parport/parport_serial.c 1 addition, 1 deletiondrivers/parport/parport_serial.c
- drivers/parport/parport_sunbpp.c 1 addition, 0 deletionsdrivers/parport/parport_sunbpp.c
- drivers/parport/share.c 5 additions, 0 deletionsdrivers/parport/share.c
- include/asm-powerpc/parport.h 0 additions, 5 deletionsinclude/asm-powerpc/parport.h
- include/linux/parport.h 6 additions, 2 deletionsinclude/linux/parport.h
- include/linux/parport_pc.h 1 addition, 2 deletionsinclude/linux/parport_pc.h
Loading
Please register or sign in to comment