diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/core/config.c | 3 | ||||
-rw-r--r-- | drivers/usb/core/devices.c | 1 | ||||
-rw-r--r-- | drivers/usb/core/file.c | 2 | ||||
-rw-r--r-- | drivers/usb/core/inode.c | 1 | ||||
-rw-r--r-- | drivers/usb/core/usb.c | 7 | ||||
-rw-r--r-- | drivers/usb/core/usb.h | 8 |
6 files changed, 14 insertions, 8 deletions
diff --git a/drivers/usb/core/config.c b/drivers/usb/core/config.c index 0b092bdf98f3..99595e07b653 100644 --- a/drivers/usb/core/config.c +++ b/drivers/usb/core/config.c | |||
@@ -10,7 +10,8 @@ | |||
10 | #include <linux/slab.h> | 10 | #include <linux/slab.h> |
11 | #include <linux/device.h> | 11 | #include <linux/device.h> |
12 | #include <asm/byteorder.h> | 12 | #include <asm/byteorder.h> |
13 | 13 | #include "usb.h" | |
14 | #include "hcd.h" | ||
14 | 15 | ||
15 | #define USB_MAXALTSETTING 128 /* Hard limit */ | 16 | #define USB_MAXALTSETTING 128 /* Hard limit */ |
16 | #define USB_MAXENDPOINTS 30 /* Hard limit */ | 17 | #define USB_MAXENDPOINTS 30 /* Hard limit */ |
diff --git a/drivers/usb/core/devices.c b/drivers/usb/core/devices.c index 8b61bcd742ca..b87608b7051b 100644 --- a/drivers/usb/core/devices.c +++ b/drivers/usb/core/devices.c | |||
@@ -59,6 +59,7 @@ | |||
59 | #include <linux/usbdevice_fs.h> | 59 | #include <linux/usbdevice_fs.h> |
60 | #include <asm/uaccess.h> | 60 | #include <asm/uaccess.h> |
61 | 61 | ||
62 | #include "usb.h" | ||
62 | #include "hcd.h" | 63 | #include "hcd.h" |
63 | 64 | ||
64 | #define MAX_TOPO_LEVEL 6 | 65 | #define MAX_TOPO_LEVEL 6 |
diff --git a/drivers/usb/core/file.c b/drivers/usb/core/file.c index 80ce9644d0ee..38ed2220c9fc 100644 --- a/drivers/usb/core/file.c +++ b/drivers/usb/core/file.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #endif | 28 | #endif |
29 | #include <linux/usb.h> | 29 | #include <linux/usb.h> |
30 | 30 | ||
31 | #include "usb.h" | ||
32 | |||
31 | #define MAX_USB_MINORS 256 | 33 | #define MAX_USB_MINORS 256 |
32 | static struct file_operations *usb_minors[MAX_USB_MINORS]; | 34 | static struct file_operations *usb_minors[MAX_USB_MINORS]; |
33 | static DEFINE_SPINLOCK(minor_lock); | 35 | static DEFINE_SPINLOCK(minor_lock); |
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c index d913407bcdc1..f9f9561c6bad 100644 --- a/drivers/usb/core/inode.c +++ b/drivers/usb/core/inode.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <linux/parser.h> | 41 | #include <linux/parser.h> |
42 | #include <asm/byteorder.h> | 42 | #include <asm/byteorder.h> |
43 | #include "usb.h" | 43 | #include "usb.h" |
44 | #include "hcd.h" | ||
44 | 45 | ||
45 | static struct super_operations usbfs_ops; | 46 | static struct super_operations usbfs_ops; |
46 | static struct file_operations default_file_operations; | 47 | static struct file_operations default_file_operations; |
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 5e45996b5a44..c231b4bef314 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c | |||
@@ -50,13 +50,6 @@ | |||
50 | #include "hcd.h" | 50 | #include "hcd.h" |
51 | #include "usb.h" | 51 | #include "usb.h" |
52 | 52 | ||
53 | extern int usb_hub_init(void); | ||
54 | extern void usb_hub_cleanup(void); | ||
55 | extern int usb_major_init(void); | ||
56 | extern void usb_major_cleanup(void); | ||
57 | extern int usb_host_init(void); | ||
58 | extern void usb_host_cleanup(void); | ||
59 | |||
60 | 53 | ||
61 | const char *usbcore_name = "usbcore"; | 54 | const char *usbcore_name = "usbcore"; |
62 | 55 | ||
diff --git a/drivers/usb/core/usb.h b/drivers/usb/core/usb.h index 4c33eee52001..2c690f6d4c18 100644 --- a/drivers/usb/core/usb.h +++ b/drivers/usb/core/usb.h | |||
@@ -21,6 +21,13 @@ extern void usb_unlock_all_devices(void); | |||
21 | extern void usb_kick_khubd(struct usb_device *dev); | 21 | extern void usb_kick_khubd(struct usb_device *dev); |
22 | extern void usb_resume_root_hub(struct usb_device *dev); | 22 | extern void usb_resume_root_hub(struct usb_device *dev); |
23 | 23 | ||
24 | extern int usb_hub_init(void); | ||
25 | extern void usb_hub_cleanup(void); | ||
26 | extern int usb_major_init(void); | ||
27 | extern void usb_major_cleanup(void); | ||
28 | extern int usb_host_init(void); | ||
29 | extern void usb_host_cleanup(void); | ||
30 | |||
24 | /* for labeling diagnostics */ | 31 | /* for labeling diagnostics */ |
25 | extern const char *usbcore_name; | 32 | extern const char *usbcore_name; |
26 | 33 | ||
@@ -30,6 +37,7 @@ extern struct file_operations usbfs_devices_fops; | |||
30 | extern struct file_operations usbfs_device_file_operations; | 37 | extern struct file_operations usbfs_device_file_operations; |
31 | extern void usbfs_conn_disc_event(void); | 38 | extern void usbfs_conn_disc_event(void); |
32 | 39 | ||
40 | |||
33 | struct dev_state { | 41 | struct dev_state { |
34 | struct list_head list; /* state list */ | 42 | struct list_head list; /* state list */ |
35 | struct usb_device *dev; | 43 | struct usb_device *dev; |