From: Harvey Harrison Date: Tue, 15 Jul 2008 19:21:41 +0000 (+0200) Subject: ide: use get_unaligned_* helpers X-Git-Tag: v2.6.27-rc1~1078^2~75 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5d0cc8ae29b310ceb6516a6840ca22738aab7820;p=linux-2.6-omap-h63xx.git ide: use get_unaligned_* helpers Signed-off-by: Harvey Harrison Cc: Andrew Morton Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 2d822df0865..1a96cc50399 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c @@ -538,7 +538,7 @@ static void idetape_analyze_error(ide_drive_t *drive, u8 *sense) if (pc->flags & PC_FLAG_DMA_ERROR) { pc->xferred = pc->req_xfer - tape->blk_size * - be32_to_cpu(get_unaligned((u32 *)&sense[3])); + get_unaligned_be32(&sense[3]); idetape_update_buffers(pc); }