Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: use get/put_unaligned_* helpers

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Tony Jones <tonyj@suse.de>
Cc: Pierre Ossman <drzeus@drzeus.cx>
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>

authored by

Harvey Harrison and committed by
Linus Torvalds
48b2cf9e 858ad08c

+1 -1
+1 -1
drivers/mmc/host/mmc_spi.c
··· 340 340 341 341 /* SPI R3, R4, or R7 == R1 + 4 bytes */ 342 342 case MMC_RSP_SPI_R3: 343 - cmd->resp[1] = be32_to_cpu(get_unaligned((u32 *)cp)); 343 + cmd->resp[1] = get_unaligned_be32(cp); 344 344 break; 345 345 346 346 /* SPI R1 == just one status byte */