Commit 59411b6d authored by Walter Harms's avatar Walter Harms Committed by Anton Blanchard

[PATCH] USB: fixes kernel_thread

parent abaeeb6c
...@@ -42,7 +42,7 @@ static LIST_HEAD(hub_event_list); /* List of hubs needing servicing */ ...@@ -42,7 +42,7 @@ static LIST_HEAD(hub_event_list); /* List of hubs needing servicing */
static LIST_HEAD(hub_list); /* List of all hubs (for cleanup) */ static LIST_HEAD(hub_list); /* List of all hubs (for cleanup) */
static DECLARE_WAIT_QUEUE_HEAD(khubd_wait); static DECLARE_WAIT_QUEUE_HEAD(khubd_wait);
static int khubd_pid = 0; /* PID of khubd */ static pid_t khubd_pid = 0; /* PID of khubd */
static DECLARE_COMPLETION(khubd_exited); static DECLARE_COMPLETION(khubd_exited);
#ifdef DEBUG #ifdef DEBUG
...@@ -1126,7 +1126,7 @@ static struct usb_driver hub_driver = { ...@@ -1126,7 +1126,7 @@ static struct usb_driver hub_driver = {
*/ */
int usb_hub_init(void) int usb_hub_init(void)
{ {
int pid; pid_t pid;
if (usb_register(&hub_driver) < 0) { if (usb_register(&hub_driver) < 0) {
err("Unable to register USB hub driver"); err("Unable to register USB hub driver");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment