diff options
-rw-r--r-- | drivers/char/hpet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index cdf2ec842e2c..cf325622b396 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c | |||
@@ -501,8 +501,8 @@ hpet_ioctl_common(struct hpet_dev *devp, int cmd, unsigned long arg, int kernel) | |||
501 | info.hi_ireqfreq = 0; | 501 | info.hi_ireqfreq = 0; |
502 | info.hi_flags = | 502 | info.hi_flags = |
503 | readq(&timer->hpet_config) & Tn_PER_INT_CAP_MASK; | 503 | readq(&timer->hpet_config) & Tn_PER_INT_CAP_MASK; |
504 | info.hi_hpet = devp->hd_hpets->hp_which; | 504 | info.hi_hpet = hpetp->hp_which; |
505 | info.hi_timer = devp - devp->hd_hpets->hp_dev; | 505 | info.hi_timer = devp - hpetp->hp_dev; |
506 | if (kernel) | 506 | if (kernel) |
507 | memcpy((void *)arg, &info, sizeof(info)); | 507 | memcpy((void *)arg, &info, sizeof(info)); |
508 | else | 508 | else |