Skip to content

Commit 51fcd7e

Browse files
alexhenriegregkh
authored andcommitted
usb: misc: uss720: point pp->dev to usbdev->dev
This avoids a "fix this legacy no-device port driver" warning from parport_announce_port in drivers/parport/share.c. The parport driver now requires a pointer to the device struct. Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Link: https://lore.kernel.org/r/20240326150723.99939-2-alexhenrie24@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4ed37ef commit 51fcd7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/misc/uss720.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ static int uss720_probe(struct usb_interface *intf,
720720
priv->pp = pp;
721721
pp->private_data = priv;
722722
pp->modes = PARPORT_MODE_PCSPP | PARPORT_MODE_TRISTATE | PARPORT_MODE_EPP | PARPORT_MODE_ECP | PARPORT_MODE_COMPAT;
723+
pp->dev = &usbdev->dev;
723724

724725
/* set the USS720 control register to manual mode, no ECP compression, enable all ints */
725726
set_1284_register(pp, 7, 0x00, GFP_KERNEL);

0 commit comments

Comments
 (0)