X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sound%2Fpci%2Fmixart%2Fmixart_core.c;h=ba0027f50944fe06ad56ed0288c984c531a06e92;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=1f588eeb824a3571cf6ea10e08427e53997b516f;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/sound/pci/mixart/mixart_core.c b/sound/pci/mixart/mixart_core.c index 1f588eeb8..ba0027f50 100644 --- a/sound/pci/mixart/mixart_core.c +++ b/sound/pci/mixart/mixart_core.c @@ -72,9 +72,12 @@ static int retrieve_msg_frame(mixart_mgr_t *mgr, u32 *msg_frame) static int get_msg(mixart_mgr_t *mgr, mixart_msg_t *resp, u32 msg_frame_address ) { unsigned long flags; - u32 headptr, i; + u32 headptr; u32 size; int err; +#ifndef __BIG_ENDIAN + unsigned int i; +#endif spin_lock_irqsave(&mgr->msg_lock, flags); err = 0; @@ -92,7 +95,7 @@ static int get_msg(mixart_mgr_t *mgr, mixart_msg_t *resp, u32 msg_frame_address } size -= MSG_DESCRIPTOR_SIZE; - memcpy_fromio(resp->data, (void *)MIXART_MEM(mgr, msg_frame_address + MSG_HEADER_SIZE ), size); + memcpy_fromio(resp->data, MIXART_MEM(mgr, msg_frame_address + MSG_HEADER_SIZE ), size); resp->size = size; /* swap if necessary */