@@ -239,7 +239,7 @@ static void cdrom_queue_request_sense(ide_drive_t *drive, void *sense,
239239
240240static void cdrom_end_request (ide_drive_t * drive , int uptodate )
241241{
242- struct request * rq = HWGROUP ( drive ) -> rq ;
242+ struct request * rq = drive -> hwif -> rq ;
243243 int nsectors = rq -> hard_cur_sectors ;
244244
245245 ide_debug_log (IDE_DBG_FUNC , "Call %s, cmd: 0x%x, uptodate: 0x%x, "
@@ -306,8 +306,7 @@ static void ide_dump_status_no_sense(ide_drive_t *drive, const char *msg, u8 st)
306306static int cdrom_decode_status (ide_drive_t * drive , int good_stat , int * stat_ret )
307307{
308308 ide_hwif_t * hwif = drive -> hwif ;
309- ide_hwgroup_t * hwgroup = hwif -> hwgroup ;
310- struct request * rq = hwgroup -> rq ;
309+ struct request * rq = hwif -> rq ;
311310 int stat , err , sense_key ;
312311
313312 /* check for errors */
@@ -502,7 +501,7 @@ static int cdrom_decode_status(ide_drive_t *drive, int good_stat, int *stat_ret)
502501 blkdev_dequeue_request (rq );
503502 spin_unlock_irqrestore (q -> queue_lock , flags );
504503
505- hwgroup -> rq = NULL ;
504+ hwif -> rq = NULL ;
506505
507506 cdrom_queue_request_sense (drive , rq -> sense , rq );
508507 } else
@@ -525,7 +524,7 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *);
525524static ide_startstop_t cdrom_start_packet_command (ide_drive_t * drive )
526525{
527526 ide_hwif_t * hwif = drive -> hwif ;
528- struct request * rq = hwif -> hwgroup -> rq ;
527+ struct request * rq = hwif -> rq ;
529528 int xferlen ;
530529
531530 xferlen = ide_cd_get_xferlen (rq );
@@ -567,7 +566,7 @@ static ide_startstop_t cdrom_start_packet_command(ide_drive_t *drive)
567566static ide_startstop_t cdrom_transfer_packet_command (ide_drive_t * drive )
568567{
569568 ide_hwif_t * hwif = drive -> hwif ;
570- struct request * rq = hwif -> hwgroup -> rq ;
569+ struct request * rq = hwif -> rq ;
571570 int cmd_len ;
572571 ide_startstop_t startstop ;
573572
@@ -854,8 +853,7 @@ static int cdrom_newpc_intr_dummy_cb(struct request *rq)
854853static ide_startstop_t cdrom_newpc_intr (ide_drive_t * drive )
855854{
856855 ide_hwif_t * hwif = drive -> hwif ;
857- ide_hwgroup_t * hwgroup = hwif -> hwgroup ;
858- struct request * rq = hwgroup -> rq ;
856+ struct request * rq = hwif -> rq ;
859857 xfer_func_t * xferfunc ;
860858 ide_expiry_t * expiry = NULL ;
861859 int dma_error = 0 , dma , stat , thislen , uptodate = 0 ;
@@ -1061,7 +1059,7 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
10611059 if (blk_end_request (rq , 0 , dlen ))
10621060 BUG ();
10631061
1064- hwgroup -> rq = NULL ;
1062+ hwif -> rq = NULL ;
10651063 } else {
10661064 if (!uptodate )
10671065 rq -> cmd_flags |= REQ_FAILED ;
0 commit comments