diff options
Diffstat (limited to 'drivers/cdrom')
-rw-r--r-- | drivers/cdrom/cdrom.c | 6 | ||||
-rw-r--r-- | drivers/cdrom/cdu31a.c | 2 | ||||
-rw-r--r-- | drivers/cdrom/cm206.c | 2 | ||||
-rw-r--r-- | drivers/cdrom/mcdx.c | 6 | ||||
-rw-r--r-- | drivers/cdrom/sonycd535.c | 2 |
5 files changed, 7 insertions, 11 deletions
diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c index 2a0c50d84fc5..7ea0f48f8fa6 100644 --- a/drivers/cdrom/cdrom.c +++ b/drivers/cdrom/cdrom.c | |||
@@ -703,7 +703,7 @@ static int cdrom_has_defect_mgt(struct cdrom_device_info *cdi) | |||
703 | { | 703 | { |
704 | struct packet_command cgc; | 704 | struct packet_command cgc; |
705 | char buffer[16]; | 705 | char buffer[16]; |
706 | __u16 *feature_code; | 706 | __be16 *feature_code; |
707 | int ret; | 707 | int ret; |
708 | 708 | ||
709 | init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_READ); | 709 | init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_READ); |
@@ -716,7 +716,7 @@ static int cdrom_has_defect_mgt(struct cdrom_device_info *cdi) | |||
716 | if ((ret = cdi->ops->generic_packet(cdi, &cgc))) | 716 | if ((ret = cdi->ops->generic_packet(cdi, &cgc))) |
717 | return ret; | 717 | return ret; |
718 | 718 | ||
719 | feature_code = (__u16 *) &buffer[sizeof(struct feature_header)]; | 719 | feature_code = (__be16 *) &buffer[sizeof(struct feature_header)]; |
720 | if (be16_to_cpu(*feature_code) == CDF_HWDM) | 720 | if (be16_to_cpu(*feature_code) == CDF_HWDM) |
721 | return 0; | 721 | return 0; |
722 | 722 | ||
@@ -2963,7 +2963,7 @@ static int mmc_ioctl(struct cdrom_device_info *cdi, unsigned int cmd, | |||
2963 | how much data is available for transfer. buffer[1] is | 2963 | how much data is available for transfer. buffer[1] is |
2964 | unfortunately ambigious and the only reliable way seem | 2964 | unfortunately ambigious and the only reliable way seem |
2965 | to be to simply skip over the block descriptor... */ | 2965 | to be to simply skip over the block descriptor... */ |
2966 | offset = 8 + be16_to_cpu(*(unsigned short *)(buffer+6)); | 2966 | offset = 8 + be16_to_cpu(*(__be16 *)(buffer+6)); |
2967 | 2967 | ||
2968 | if (offset + 16 > sizeof(buffer)) | 2968 | if (offset + 16 > sizeof(buffer)) |
2969 | return -E2BIG; | 2969 | return -E2BIG; |
diff --git a/drivers/cdrom/cdu31a.c b/drivers/cdrom/cdu31a.c index ccd91c1a84bd..2157c58755e0 100644 --- a/drivers/cdrom/cdu31a.c +++ b/drivers/cdrom/cdu31a.c | |||
@@ -513,7 +513,7 @@ static inline void write_cmd(unsigned char cmd) | |||
513 | outb(cmd, sony_cd_cmd_reg); | 513 | outb(cmd, sony_cd_cmd_reg); |
514 | } | 514 | } |
515 | 515 | ||
516 | static irqreturn_t cdu31a_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 516 | static irqreturn_t cdu31a_interrupt(int irq, void *dev_id) |
517 | { | 517 | { |
518 | unsigned char val; | 518 | unsigned char val; |
519 | 519 | ||
diff --git a/drivers/cdrom/cm206.c b/drivers/cdrom/cm206.c index 9b05ddd23141..e6d8e9ededea 100644 --- a/drivers/cdrom/cm206.c +++ b/drivers/cdrom/cm206.c | |||
@@ -359,7 +359,7 @@ static struct tasklet_struct cm206_tasklet; | |||
359 | as there seems so reason for this to happen. | 359 | as there seems so reason for this to happen. |
360 | */ | 360 | */ |
361 | 361 | ||
362 | static irqreturn_t cm206_interrupt(int sig, void *dev_id, struct pt_regs *regs) | 362 | static irqreturn_t cm206_interrupt(int sig, void *dev_id) |
363 | { | 363 | { |
364 | volatile ush fool; | 364 | volatile ush fool; |
365 | cd->intr_ds = inw(r_data_status); /* resets data_ready, data_error, | 365 | cd->intr_ds = inw(r_data_status); /* resets data_ready, data_error, |
diff --git a/drivers/cdrom/mcdx.c b/drivers/cdrom/mcdx.c index dcd1ab684f3e..f574962f4288 100644 --- a/drivers/cdrom/mcdx.c +++ b/drivers/cdrom/mcdx.c | |||
@@ -845,15 +845,11 @@ static void mcdx_delay(struct s_drive_stuff *stuff, long jifs) | |||
845 | } | 845 | } |
846 | } | 846 | } |
847 | 847 | ||
848 | static irqreturn_t mcdx_intr(int irq, void *dev_id, struct pt_regs *regs) | 848 | static irqreturn_t mcdx_intr(int irq, void *dev_id) |
849 | { | 849 | { |
850 | struct s_drive_stuff *stuffp = dev_id; | 850 | struct s_drive_stuff *stuffp = dev_id; |
851 | unsigned char b; | 851 | unsigned char b; |
852 | 852 | ||
853 | if (stuffp == NULL) { | ||
854 | xwarn("mcdx: no device for intr %d\n", irq); | ||
855 | return IRQ_NONE; | ||
856 | } | ||
857 | #ifdef AK2 | 853 | #ifdef AK2 |
858 | if (!stuffp->busy && stuffp->pending) | 854 | if (!stuffp->busy && stuffp->pending) |
859 | stuffp->int_err = 1; | 855 | stuffp->int_err = 1; |
diff --git a/drivers/cdrom/sonycd535.c b/drivers/cdrom/sonycd535.c index 30ab56258a92..f77ada933ea0 100644 --- a/drivers/cdrom/sonycd535.c +++ b/drivers/cdrom/sonycd535.c | |||
@@ -322,7 +322,7 @@ disable_interrupts(void) | |||
322 | } | 322 | } |
323 | 323 | ||
324 | static irqreturn_t | 324 | static irqreturn_t |
325 | cdu535_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 325 | cdu535_interrupt(int irq, void *dev_id) |
326 | { | 326 | { |
327 | disable_interrupts(); | 327 | disable_interrupts(); |
328 | if (waitqueue_active(&cdu535_irq_wait)) { | 328 | if (waitqueue_active(&cdu535_irq_wait)) { |