Skip to content

Commit

Permalink
mmc: use common byte swap macros
Browse files Browse the repository at this point in the history
Use the more generic byte swapping macros instead of the socket variants.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Pierre Ossman committed Oct 27, 2007
1 parent 78e4807 commit 1fa8dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mmc/core/sd_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ int mmc_app_send_scr(struct mmc_card *card, u32 *scr)
if (data.error)
return data.error;

scr[0] = ntohl(scr[0]);
scr[1] = ntohl(scr[1]);
scr[0] = be32_to_cpu(scr[0]);
scr[1] = be32_to_cpu(scr[1]);

return 0;
}
Expand Down

0 comments on commit 1fa8dd1

Please sign in to comment.