WorkStruct: make allyesconfig
Fix up for make allyesconfig. Signed-Off-By: David Howells <dhowells@redhat.com>
This commit is contained in:
@@ -167,9 +167,10 @@ static void set_port_led(
|
||||
|
||||
#define LED_CYCLE_PERIOD ((2*HZ)/3)
|
||||
|
||||
static void led_work (void *__hub)
|
||||
static void led_work (struct work_struct *work)
|
||||
{
|
||||
struct usb_hub *hub = __hub;
|
||||
struct usb_hub *hub =
|
||||
container_of(work, struct usb_hub, leds.work);
|
||||
struct usb_device *hdev = hub->hdev;
|
||||
unsigned i;
|
||||
unsigned changed = 0;
|
||||
@@ -351,9 +352,10 @@ hub_clear_tt_buffer (struct usb_device *hdev, u16 devinfo, u16 tt)
|
||||
* talking to TTs must queue control transfers (not just bulk and iso), so
|
||||
* both can talk to the same hub concurrently.
|
||||
*/
|
||||
static void hub_tt_kevent (void *arg)
|
||||
static void hub_tt_kevent (struct work_struct *work)
|
||||
{
|
||||
struct usb_hub *hub = arg;
|
||||
struct usb_hub *hub =
|
||||
container_of(work, struct usb_hub, tt.kevent);
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave (&hub->tt.lock, flags);
|
||||
@@ -641,7 +643,7 @@ static int hub_configure(struct usb_hub *hub,
|
||||
|
||||
spin_lock_init (&hub->tt.lock);
|
||||
INIT_LIST_HEAD (&hub->tt.clear_list);
|
||||
INIT_WORK (&hub->tt.kevent, hub_tt_kevent, hub);
|
||||
INIT_WORK (&hub->tt.kevent, hub_tt_kevent);
|
||||
switch (hdev->descriptor.bDeviceProtocol) {
|
||||
case 0:
|
||||
break;
|
||||
@@ -880,7 +882,7 @@ descriptor_error:
|
||||
INIT_LIST_HEAD(&hub->event_list);
|
||||
hub->intfdev = &intf->dev;
|
||||
hub->hdev = hdev;
|
||||
INIT_WORK(&hub->leds, led_work, hub);
|
||||
INIT_DELAYED_WORK(&hub->leds, led_work);
|
||||
|
||||
usb_set_intfdata (intf, hub);
|
||||
|
||||
@@ -2281,7 +2283,7 @@ check_highspeed (struct usb_hub *hub, struct usb_device *udev, int port1)
|
||||
/* hub LEDs are probably harder to miss than syslog */
|
||||
if (hub->has_indicators) {
|
||||
hub->indicator[port1-1] = INDICATOR_GREEN_BLINK;
|
||||
schedule_work (&hub->leds);
|
||||
schedule_delayed_work (&hub->leds, 0);
|
||||
}
|
||||
}
|
||||
kfree(qual);
|
||||
@@ -2455,7 +2457,7 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
|
||||
if (hub->has_indicators) {
|
||||
hub->indicator[port1-1] =
|
||||
INDICATOR_AMBER_BLINK;
|
||||
schedule_work (&hub->leds);
|
||||
schedule_delayed_work (&hub->leds, 0);
|
||||
}
|
||||
status = -ENOTCONN; /* Don't retry */
|
||||
goto loop_disable;
|
||||
|
@@ -230,7 +230,7 @@ struct usb_hub {
|
||||
|
||||
unsigned has_indicators:1;
|
||||
enum hub_led_mode indicator[USB_MAXCHILDREN];
|
||||
struct work_struct leds;
|
||||
struct delayed_work leds;
|
||||
};
|
||||
|
||||
#endif /* __LINUX_HUB_H */
|
||||
|
@@ -1501,9 +1501,10 @@ struct set_config_request {
|
||||
};
|
||||
|
||||
/* Worker routine for usb_driver_set_configuration() */
|
||||
static void driver_set_config_work(void *_req)
|
||||
static void driver_set_config_work(struct work_struct *work)
|
||||
{
|
||||
struct set_config_request *req = _req;
|
||||
struct set_config_request *req =
|
||||
container_of(work, struct set_config_request, work);
|
||||
|
||||
usb_lock_device(req->udev);
|
||||
usb_set_configuration(req->udev, req->config);
|
||||
@@ -1541,7 +1542,7 @@ int usb_driver_set_configuration(struct usb_device *udev, int config)
|
||||
return -ENOMEM;
|
||||
req->udev = udev;
|
||||
req->config = config;
|
||||
INIT_WORK(&req->work, driver_set_config_work, req);
|
||||
INIT_WORK(&req->work, driver_set_config_work);
|
||||
|
||||
usb_get_dev(udev);
|
||||
if (!schedule_work(&req->work)) {
|
||||
|
@@ -210,9 +210,10 @@ static void ksuspend_usb_cleanup(void)
|
||||
#ifdef CONFIG_USB_SUSPEND
|
||||
|
||||
/* usb_autosuspend_work - callback routine to autosuspend a USB device */
|
||||
static void usb_autosuspend_work(void *_udev)
|
||||
static void usb_autosuspend_work(struct work_struct *work)
|
||||
{
|
||||
struct usb_device *udev = _udev;
|
||||
struct usb_device *udev =
|
||||
container_of(work, struct usb_device, autosuspend.work);
|
||||
|
||||
usb_pm_lock(udev);
|
||||
udev->auto_pm = 1;
|
||||
@@ -222,7 +223,7 @@ static void usb_autosuspend_work(void *_udev)
|
||||
|
||||
#else
|
||||
|
||||
static void usb_autosuspend_work(void *_udev)
|
||||
static void usb_autosuspend_work(struct work_struct *work)
|
||||
{}
|
||||
|
||||
#endif
|
||||
@@ -304,7 +305,7 @@ usb_alloc_dev(struct usb_device *parent, struct usb_bus *bus, unsigned port1)
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
mutex_init(&dev->pm_mutex);
|
||||
INIT_WORK(&dev->autosuspend, usb_autosuspend_work, dev);
|
||||
INIT_DELAYED_WORK(&dev->autosuspend, usb_autosuspend_work);
|
||||
#endif
|
||||
return dev;
|
||||
}
|
||||
|
Reference in New Issue
Block a user