diff --git a/hw/zaurus.c b/hw/zaurus.c index e52f29b575..78a120c9d0 100644 --- a/hw/zaurus.c +++ b/hw/zaurus.c @@ -155,7 +155,7 @@ static CPUWriteMemoryFunc *scoop_writefn[] = { void scoop_gpio_set(void *opaque, int line, int level) { - ScoopInfo *s = (ScoopInfo *) s; + ScoopInfo *s = (ScoopInfo *) opaque; if (level) s->gpio_level |= (1 << line);