aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/tlclk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/char/tlclk.c b/drivers/char/tlclk.c
index ce29e7cce528..e95e0ab0bd87 100644
--- a/drivers/char/tlclk.c
+++ b/drivers/char/tlclk.c
@@ -784,8 +784,10 @@ static int __init tlclk_init(void)
784 } 784 }
785 tlclk_major = ret; 785 tlclk_major = ret;
786 alarm_events = kzalloc( sizeof(struct tlclk_alarms), GFP_KERNEL); 786 alarm_events = kzalloc( sizeof(struct tlclk_alarms), GFP_KERNEL);
787 if (!alarm_events) 787 if (!alarm_events) {
788 ret = -ENOMEM;
788 goto out1; 789 goto out1;
790 }
789 791
790 /* Read telecom clock IRQ number (Set by BIOS) */ 792 /* Read telecom clock IRQ number (Set by BIOS) */
791 if (!request_region(TLCLK_BASE, 8, "telco_clock")) { 793 if (!request_region(TLCLK_BASE, 8, "telco_clock")) {