wireless: use get/put_unaligned_* helpers
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: John W. Linville <linville@tuxdriver.com> Cc: Michael Buesch <mb@bu3sch.de> Cc: Daniel Drake <dsd@gentoo.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
6caf52a453
commit
533dd1b0be
@@ -2171,7 +2171,7 @@ static int b43_write_initvals(struct b43_wldev *dev,
|
||||
goto err_format;
|
||||
array_size -= sizeof(iv->data.d32);
|
||||
|
||||
value = be32_to_cpu(get_unaligned(&iv->data.d32));
|
||||
value = get_unaligned_be32(&iv->data.d32);
|
||||
b43_write32(dev, offset, value);
|
||||
|
||||
iv = (const struct b43_iv *)((const uint8_t *)iv +
|
||||
|
Reference in New Issue
Block a user