diff options
Diffstat (limited to 'drivers/char/tlclk.c')
-rw-r--r-- | drivers/char/tlclk.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/char/tlclk.c b/drivers/char/tlclk.c index d2c5ba4e83b8..244d30a03fef 100644 --- a/drivers/char/tlclk.c +++ b/drivers/char/tlclk.c | |||
@@ -193,7 +193,7 @@ static DEFINE_SPINLOCK(event_lock); | |||
193 | 193 | ||
194 | static int tlclk_major = TLCLK_MAJOR; | 194 | static int tlclk_major = TLCLK_MAJOR; |
195 | 195 | ||
196 | static irqreturn_t tlclk_interrupt(int irq, void *dev_id, struct pt_regs *regs); | 196 | static irqreturn_t tlclk_interrupt(int irq, void *dev_id); |
197 | 197 | ||
198 | static DECLARE_WAIT_QUEUE_HEAD(wq); | 198 | static DECLARE_WAIT_QUEUE_HEAD(wq); |
199 | 199 | ||
@@ -792,15 +792,14 @@ static int __init tlclk_init(void) | |||
792 | ret = misc_register(&tlclk_miscdev); | 792 | ret = misc_register(&tlclk_miscdev); |
793 | if (ret < 0) { | 793 | if (ret < 0) { |
794 | printk(KERN_ERR "tlclk: misc_register returns %d.\n", ret); | 794 | printk(KERN_ERR "tlclk: misc_register returns %d.\n", ret); |
795 | ret = -EBUSY; | ||
796 | goto out3; | 795 | goto out3; |
797 | } | 796 | } |
798 | 797 | ||
799 | tlclk_device = platform_device_register_simple("telco_clock", | 798 | tlclk_device = platform_device_register_simple("telco_clock", |
800 | -1, NULL, 0); | 799 | -1, NULL, 0); |
801 | if (!tlclk_device) { | 800 | if (IS_ERR(tlclk_device)) { |
802 | printk(KERN_ERR "tlclk: platform_device_register failed.\n"); | 801 | printk(KERN_ERR "tlclk: platform_device_register failed.\n"); |
803 | ret = -EBUSY; | 802 | ret = PTR_ERR(tlclk_device); |
804 | goto out4; | 803 | goto out4; |
805 | } | 804 | } |
806 | 805 | ||
@@ -856,7 +855,7 @@ static void switchover_timeout(unsigned long data) | |||
856 | wake_up(&wq); | 855 | wake_up(&wq); |
857 | } | 856 | } |
858 | 857 | ||
859 | static irqreturn_t tlclk_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 858 | static irqreturn_t tlclk_interrupt(int irq, void *dev_id) |
860 | { | 859 | { |
861 | unsigned long flags; | 860 | unsigned long flags; |
862 | 861 | ||