diff options
author | Borislav Petkov <petkovbb@googlemail.com> | 2008-02-11 00:32:13 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-11 00:32:13 +0100 |
commit | 7eb43fd2fa4a55faee97d4c84b336d2138075926 (patch) | |
tree | 00789347aca567816b431b6b65d5e44606168384 /drivers/ide/ide-cd.c | |
parent | eba8ff946177ca38dfde0bf1d8ce0703c45c49b9 (diff) | |
download | kernel_samsung_espresso10-7eb43fd2fa4a55faee97d4c84b336d2138075926.zip kernel_samsung_espresso10-7eb43fd2fa4a55faee97d4c84b336d2138075926.tar.gz kernel_samsung_espresso10-7eb43fd2fa4a55faee97d4c84b336d2138075926.tar.bz2 |
ide-cd: replace ntohs with generic byteorder macro be16_to_cpu
Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r-- | drivers/ide/ide-cd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 5e42c19..354c91d 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) if (stat) return stat; - toc->hdr.toc_length = ntohs (toc->hdr.toc_length); + toc->hdr.toc_length = be16_to_cpu(toc->hdr.toc_length); if (info->cd_flags & IDE_CD_FLAG_TOCTRACKS_AS_BCD) { toc->hdr.first_track = BCD2BIN(toc->hdr.first_track); |