diff options
-rw-r--r-- | drivers/char/hpet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index a4eee324eb1e..84e6a7e673b7 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c | |||
@@ -1000,6 +1000,8 @@ static int hpet_acpi_add(struct acpi_device *device) | |||
1000 | return -ENODEV; | 1000 | return -ENODEV; |
1001 | 1001 | ||
1002 | if (!data.hd_address || !data.hd_nirqs) { | 1002 | if (!data.hd_address || !data.hd_nirqs) { |
1003 | if (data.hd_address) | ||
1004 | iounmap(data.hd_address); | ||
1003 | printk("%s: no address or irqs in _CRS\n", __func__); | 1005 | printk("%s: no address or irqs in _CRS\n", __func__); |
1004 | return -ENODEV; | 1006 | return -ENODEV; |
1005 | } | 1007 | } |