Skip to content

Commit

Permalink
Build fixing fl2000_interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
klogg committed Sep 11, 2024
1 parent 7caf29e commit 20f00bb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fl2000_interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct fl2000_interrupt {

static void fl2000_intr_work(struct work_struct *work)
{
struct fl2000_interrupt *intr = container_of(work, struct fl2000_intr, work);
struct fl2000_interrupt *intr = container_of(work, struct fl2000_interrupt, work);
struct usb_interface *interface = intr->interface;
struct usb_device *usb_dev = interface_to_usbdev(interface);
int ret;
Expand All @@ -28,7 +28,7 @@ static void fl2000_intr_work(struct work_struct *work)
return;
}

ret = fl2000_check_interrupt(intr->usb_dev);
ret = fl2000_check_interrupt(usb_dev);
if (ret < 0) {
dev_err(&interface->dev, "Checking interrupt message failed (%d)", ret);
/* TODO: Signal fault to system and start shutdown of usb_dev */
Expand Down Expand Up @@ -87,7 +87,7 @@ int fl2000_disable_interrupt(struct usb_device *usb_dev)
return -ENODEV;
}

return cancel_work_sync(intr->work_queue, &intr->work);
return cancel_work_sync(&intr->work);
}

/**
Expand All @@ -99,7 +99,6 @@ int fl2000_disable_interrupt(struct usb_device *usb_dev)
*/
int fl2000_interrupt_create(struct usb_interface *interface)
{
int ret;
struct fl2000_interrupt *intr;
struct usb_device *usb_dev = interface_to_usbdev(interface);

Expand Down

0 comments on commit 20f00bb

Please sign in to comment.