projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ide: use 'drive->dn & 1' instead of drive->select.b.unit
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
ide
/
ide-dma.c
diff --git
a/drivers/ide/ide-dma.c
b/drivers/ide/ide-dma.c
index 82fa6107434b700f476c2bc5353ab71415b44b76..d5934fc8f85fc76d2b2bbd785991669f07494801 100644
(file)
--- a/
drivers/ide/ide-dma.c
+++ b/
drivers/ide/ide-dma.c
@@
-370,7
+370,7
@@
static int dma_timer_expiry (ide_drive_t *drive)
void ide_dma_host_set(ide_drive_t *drive, int on)
{
ide_hwif_t *hwif = HWIF(drive);
- u8 unit =
(drive->select.b.unit & 0x01)
;
+ u8 unit =
drive->dn & 1
;
u8 dma_stat = hwif->tp_ops->read_sff_dma_status(hwif);
if (on)