Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128153
b: refs/heads/master
c: c80a7b2
h: refs/heads/master
i:
  128151: 8763e2a
v: v3
  • Loading branch information
Harvey Harrison authored and David Woodhouse committed Dec 10, 2008
1 parent 427e0b4 commit 28f0950
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0bc4382ae901311fe53be5735026cbe3ea6f235f
refs/heads/master: c80a7b265fedef584a1bb8baf92a5b289a66e039
6 changes: 2 additions & 4 deletions trunk/drivers/mtd/rfd_ftl.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

#include <asm/types.h>

#define const_cpu_to_le16 __constant_cpu_to_le16

static int block_size = 0;
module_param(block_size, int, 0);
MODULE_PARM_DESC(block_size, "Block size to use by RFD, defaults to erase unit size");
Expand Down Expand Up @@ -298,7 +296,7 @@ static void erase_callback(struct erase_info *erase)
return;
}

magic = const_cpu_to_le16(RFD_MAGIC);
magic = cpu_to_le16(RFD_MAGIC);

part->blocks[i].state = BLOCK_ERASED;
part->blocks[i].free_sectors = part->data_sectors_per_block;
Expand Down Expand Up @@ -588,7 +586,7 @@ static int mark_sector_deleted(struct partition *part, u_long old_addr)
int block, offset, rc;
u_long addr;
size_t retlen;
u16 del = const_cpu_to_le16(SECTOR_DELETED);
u16 del = cpu_to_le16(SECTOR_DELETED);

block = old_addr / part->block_size;
offset = (old_addr % part->block_size) / SECTOR_SIZE -
Expand Down

0 comments on commit 28f0950

Please sign in to comment.