aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-cd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 5e42c19a03e3..354c91d06a6d 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -1555,7 +1555,7 @@ int ide_cd_read_toc(ide_drive_t *drive, struct request_sense *sense)
1555 if (stat) 1555 if (stat)
1556 return stat; 1556 return stat;
1557 1557
1558 toc->hdr.toc_length = ntohs (toc->hdr.toc_length); 1558 toc->hdr.toc_length = be16_to_cpu(toc->hdr.toc_length);
1559 1559
1560 if (info->cd_flags & IDE_CD_FLAG_TOCTRACKS_AS_BCD) { 1560 if (info->cd_flags & IDE_CD_FLAG_TOCTRACKS_AS_BCD) {
1561 toc->hdr.first_track = BCD2BIN(toc->hdr.first_track); 1561 toc->hdr.first_track = BCD2BIN(toc->hdr.first_track);