Skip to contentSkip to conversation

possible typo in ide-disk.c

PATCH New Magnus Damm 1 participant 1 message Jul 21, 2004 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 possible typo in ide-disk.c

Hi all,

This sure looks like a typo to me.

/ magnus - not subscribed, please cc.

drivers/ide/ide-disk.c +1 -1
@@ -1377,25 +1377,25 @@
 		args->handler	   = &task_no_data_intr;
 		return do_rw_taskfile(drive, args);
 
 	case idedisk_pm_standby:	/* Suspend step 2 (standby) */
 		args->tfRegister[IDE_COMMAND_OFFSET] = WIN_STANDBYNOW1;
 		args->command_type = IDE_DRIVE_TASK_NO_DATA;
 		args->handler	   = &task_no_data_intr;
 		return do_rw_taskfile(drive, args);
 
 	case idedisk_pm_idle:		/* Resume step 1 (idle) */
 		args->tfRegister[IDE_COMMAND_OFFSET] = WIN_IDLEIMMEDIATE;
 		args->command_type = IDE_DRIVE_TASK_NO_DATA;
-		args->handler = task_no_data_intr;
+		args->handler = &task_no_data_intr;
 		return do_rw_taskfile(drive, args);
 
 	case idedisk_pm_restore_dma:	/* Resume step 2 (restore DMA) */
 		/*
 		 * Right now, all we do is call hwif->ide_dma_check(drive),
 		 * we could be smarter and check for current xfer_speed
 		 * in struct drive etc...
 		 * Also, this step could be implemented as a generic helper
 		 * as most subdrivers will use it
 		 */
 		if ((drive->id->capability & 1) == 0)
 			break;