diff options
Diffstat (limited to 'include/linux/cdrom.h')
-rw-r--r-- | include/linux/cdrom.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/cdrom.h b/include/linux/cdrom.h index a5cd2047624e..5db265ea60f6 100644 --- a/include/linux/cdrom.h +++ b/include/linux/cdrom.h | |||
@@ -910,6 +910,7 @@ struct mode_page_header { | |||
910 | #ifdef __KERNEL__ | 910 | #ifdef __KERNEL__ |
911 | #include <linux/fs.h> /* not really needed, later.. */ | 911 | #include <linux/fs.h> /* not really needed, later.. */ |
912 | #include <linux/device.h> | 912 | #include <linux/device.h> |
913 | #include <linux/list.h> | ||
913 | 914 | ||
914 | struct packet_command | 915 | struct packet_command |
915 | { | 916 | { |
@@ -934,7 +935,7 @@ struct packet_command | |||
934 | /* Uniform cdrom data structures for cdrom.c */ | 935 | /* Uniform cdrom data structures for cdrom.c */ |
935 | struct cdrom_device_info { | 936 | struct cdrom_device_info { |
936 | struct cdrom_device_ops *ops; /* link to device_ops */ | 937 | struct cdrom_device_ops *ops; /* link to device_ops */ |
937 | struct cdrom_device_info *next; /* next device_info for this major */ | 938 | struct list_head list; /* linked list of all device_info */ |
938 | struct gendisk *disk; /* matching block layer disk */ | 939 | struct gendisk *disk; /* matching block layer disk */ |
939 | void *handle; /* driver-dependent data */ | 940 | void *handle; /* driver-dependent data */ |
940 | /* specifications */ | 941 | /* specifications */ |
@@ -994,7 +995,7 @@ extern int cdrom_ioctl(struct file *file, struct cdrom_device_info *cdi, | |||
994 | extern int cdrom_media_changed(struct cdrom_device_info *); | 995 | extern int cdrom_media_changed(struct cdrom_device_info *); |
995 | 996 | ||
996 | extern int register_cdrom(struct cdrom_device_info *cdi); | 997 | extern int register_cdrom(struct cdrom_device_info *cdi); |
997 | extern int unregister_cdrom(struct cdrom_device_info *cdi); | 998 | extern void unregister_cdrom(struct cdrom_device_info *cdi); |
998 | 999 | ||
999 | typedef struct { | 1000 | typedef struct { |
1000 | int data; | 1001 | int data; |