aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/zaurus.c2
1 files changed, 1 insertions, 1 deletions
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);