summaryrefslogtreecommitdiffstats
path: root/sharplhf00l04.c
diff options
context:
space:
mode:
Diffstat (limited to 'sharplhf00l04.c')
-rw-r--r--sharplhf00l04.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sharplhf00l04.c b/sharplhf00l04.c
index af65585..fc41fbf 100644
--- a/sharplhf00l04.c
+++ b/sharplhf00l04.c
@@ -78,7 +78,7 @@ int probe_lhf00l04(struct flashchip *flash)
size_t size = flash->total_size * 1024;
// we need to mmap the write-protect space.
bios = mmap(0, size, PROT_WRITE | PROT_READ, MAP_SHARED,
- flash->fd_mem, (off_t) (0 - 0x400000 - size));
+ fd_mem, (off_t) (0 - 0x400000 - size));
if (bios == MAP_FAILED) {
// it's this part but we can't map it ...
perror("Error MMAP /dev/mem");
OpenPOWER on IntegriCloud