Message ID | 20240326150723.99939-2-alexhenrie24@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 51fcd7ec9df6c8e771339a03211dabd3e565f73d |
Headers | show |
Series | usb: misc: uss720: improve support for Belkin F5U002 devices | expand |
On Tue, 26 Mar 2024 at 15:16, Alex Henrie <alexhenrie24@gmail.com> wrote: > > 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>
diff --git a/drivers/usb/misc/uss720.c b/drivers/usb/misc/uss720.c index b00d92db5dfd..1c940608deb5 100644 --- a/drivers/usb/misc/uss720.c +++ b/drivers/usb/misc/uss720.c @@ -720,6 +720,7 @@ static int uss720_probe(struct usb_interface *intf, priv->pp = pp; pp->private_data = priv; pp->modes = PARPORT_MODE_PCSPP | PARPORT_MODE_TRISTATE | PARPORT_MODE_EPP | PARPORT_MODE_ECP | PARPORT_MODE_COMPAT; + pp->dev = &usbdev->dev; /* set the USS720 control register to manual mode, no ECP compression, enable all ints */ set_1284_register(pp, 7, 0x00, GFP_KERNEL);
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> --- drivers/usb/misc/uss720.c | 1 + 1 file changed, 1 insertion(+)