* PATCH: enable the hwif->raw_taskfile hook
@ 2004-08-15 15:05 Alan Cox
0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2004-08-15 15:05 UTC (permalink / raw)
To: linux-ide, linux-kernel, torvalds
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.8-rc3/drivers/ide/ide-taskfile.c linux-2.6.8-rc3/drivers/ide/ide-taskfile.c
--- linux.vanilla-2.6.8-rc3/drivers/ide/ide-taskfile.c 2004-08-09 15:51:00.000000000 +0100
+++ linux-2.6.8-rc3/drivers/ide/ide-taskfile.c 2004-08-12 16:43:49.000000000 +0100
@@ -604,7 +604,11 @@
int ide_raw_taskfile (ide_drive_t *drive, ide_task_t *args, u8 *buf)
{
- return ide_diag_taskfile(drive, args, 0, buf);
+ ide_hwif_t *hwif = HWIF(drive);
+ if(hwif->raw_taskfile)
+ return hwif->raw_taskfile(drive, args, buf);
+ else
+ return ide_diag_taskfile(drive, args, 0, buf);
}
EXPORT_SYMBOL(ide_raw_taskfile);
Signed-off-by: Alan Cox <alan@redhat.com>
--
Xenophobia: fear of paravirtualization
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-15 15:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-15 15:05 PATCH: enable the hwif->raw_taskfile hook Alan Cox
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.