Commit c80a7b265fedef584a1bb8baf92a5b289a66e039
Committed by
David Woodhouse
1 parent
0bc4382ae9
Exists in
master
and in
39 other branches
[MTD] remove private wrapper of endian helpers in rfd_ftl.c
Base versions handle constant folding just fine. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Showing 1 changed file with 2 additions and 4 deletions Side-by-side Diff
drivers/mtd/rfd_ftl.c
... | ... | @@ -21,8 +21,6 @@ |
21 | 21 | |
22 | 22 | #include <asm/types.h> |
23 | 23 | |
24 | -#define const_cpu_to_le16 __constant_cpu_to_le16 | |
25 | - | |
26 | 24 | static int block_size = 0; |
27 | 25 | module_param(block_size, int, 0); |
28 | 26 | MODULE_PARM_DESC(block_size, "Block size to use by RFD, defaults to erase unit size"); |
... | ... | @@ -298,7 +296,7 @@ |
298 | 296 | return; |
299 | 297 | } |
300 | 298 | |
301 | - magic = const_cpu_to_le16(RFD_MAGIC); | |
299 | + magic = cpu_to_le16(RFD_MAGIC); | |
302 | 300 | |
303 | 301 | part->blocks[i].state = BLOCK_ERASED; |
304 | 302 | part->blocks[i].free_sectors = part->data_sectors_per_block; |
... | ... | @@ -588,7 +586,7 @@ |
588 | 586 | int block, offset, rc; |
589 | 587 | u_long addr; |
590 | 588 | size_t retlen; |
591 | - u16 del = const_cpu_to_le16(SECTOR_DELETED); | |
589 | + u16 del = cpu_to_le16(SECTOR_DELETED); | |
592 | 590 | |
593 | 591 | block = old_addr / part->block_size; |
594 | 592 | offset = (old_addr % part->block_size) / SECTOR_SIZE - |