summaryrefslogtreecommitdiffstats
path: root/sst49lfxxxc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sst49lfxxxc.c')
-rw-r--r--sst49lfxxxc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sst49lfxxxc.c b/sst49lfxxxc.c
index 4486186..522cb9b 100644
--- a/sst49lfxxxc.c
+++ b/sst49lfxxxc.c
@@ -151,7 +151,7 @@ int probe_49lfxxxc(struct flashchip *flash)
return 0;
bios = mmap(0, size, PROT_WRITE | PROT_READ, MAP_SHARED,
- flash->fd_mem, (off_t) (0xFFFFFFFF - 0x400000 - size + 1));
+ fd_mem, (off_t) (0xFFFFFFFF - 0x400000 - size + 1));
if (bios == MAP_FAILED) {
// it's this part but we can't map it ...
perror("Error MMAP /dev/mem");
OpenPOWER on IntegriCloud