aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-lib.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-01-25 16:17:17 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-01-25 16:17:17 -0500
commita501633c7d44087e806597d3a213d735346edd51 (patch)
treeb82d583f6e29beae7943860b01a0303985d197ea /drivers/ide/ide-lib.c
parent1c904fcfbb0d8eef92ef42b1da378b4714143e46 (diff)
ide-disk: use ide_get_lba_addr()
* Export ide_get_lba_addr(). * Convert idedisk_{read_native,set}_max_address() to use ide_get_lba_addr(). * Remove incorrect comment from idedisk_read_native_max_address() (noticed by Sergei). There should be no functionality changes caused by this patch. Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-lib.c')
-rw-r--r--drivers/ide/ide-lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/ide-lib.c b/drivers/ide/ide-lib.c
index d7503c489e99..6b2e810cb9e0 100644
--- a/drivers/ide/ide-lib.c
+++ b/drivers/ide/ide-lib.c
@@ -479,7 +479,7 @@ static void ide_dump_opcode(ide_drive_t *drive)
479 printk("0x%02x\n", opcode); 479 printk("0x%02x\n", opcode);
480} 480}
481 481
482static u64 ide_get_lba_addr(struct ide_taskfile *tf, int lba48) 482u64 ide_get_lba_addr(struct ide_taskfile *tf, int lba48)
483{ 483{
484 u32 high, low; 484 u32 high, low;
485 485
@@ -492,6 +492,7 @@ static u64 ide_get_lba_addr(struct ide_taskfile *tf, int lba48)
492 492
493 return ((u64)high << 24) | low; 493 return ((u64)high << 24) | low;
494} 494}
495EXPORT_SYMBOL_GPL(ide_get_lba_addr);
495 496
496static void ide_dump_sector(ide_drive_t *drive) 497static void ide_dump_sector(ide_drive_t *drive)
497{ 498{