Skip to content

Commit 4ab2495

Browse files
Alan-CoxLinus Torvalds
authored andcommitted
[PATCH] tclk: fix typos, exclamation mark frenzy and missing device id on messages
I sent this out a couple of months ago and the driver author said it he'd merge it. Nothing has happened since so I'm submitting it directly. No functionality changes just texts. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent b759958 commit 4ab2495

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

‎drivers/char/tlclk.c‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static int tlclk_open(struct inode *inode, struct file *filp)
211211
result = request_irq(telclk_interrupt, &tlclk_interrupt,
212212
SA_INTERRUPT, "telco_clock", tlclk_interrupt);
213213
if (result == -EBUSY) {
214-
printk(KERN_ERR "telco_clock: Interrupt can't be reserved!\n");
214+
printk(KERN_ERR "tlclk: Interrupt can't be reserved.\n");
215215
return -EBUSY;
216216
}
217217
inb(TLCLK_REG6); /* Clear interrupt events */
@@ -741,7 +741,7 @@ static int __init tlclk_init(void)
741741

742742
ret = register_chrdev(tlclk_major, "telco_clock", &tlclk_fops);
743743
if (ret < 0) {
744-
printk(KERN_ERR "telco_clock: can't get major! %d\n", tlclk_major);
744+
printk(KERN_ERR "tlclk: can't get major %d.\n", tlclk_major);
745745
return ret;
746746
}
747747
alarm_events = kzalloc( sizeof(struct tlclk_alarms), GFP_KERNEL);
@@ -750,15 +750,15 @@ static int __init tlclk_init(void)
750750

751751
/* Read telecom clock IRQ number (Set by BIOS) */
752752
if (!request_region(TLCLK_BASE, 8, "telco_clock")) {
753-
printk(KERN_ERR "tlclk: request_region failed! 0x%X\n",
753+
printk(KERN_ERR "tlclk: request_region 0x%X failed.\n",
754754
TLCLK_BASE);
755755
ret = -EBUSY;
756756
goto out2;
757757
}
758758
telclk_interrupt = (inb(TLCLK_REG7) & 0x0f);
759759

760760
if (0x0F == telclk_interrupt ) { /* not MCPBL0010 ? */
761-
printk(KERN_ERR "telclk_interrup = 0x%x non-mcpbl0010 hw\n",
761+
printk(KERN_ERR "telclk_interrup = 0x%x non-mcpbl0010 hw.\n",
762762
telclk_interrupt);
763763
ret = -ENXIO;
764764
goto out3;
@@ -768,24 +768,23 @@ static int __init tlclk_init(void)
768768

769769
ret = misc_register(&tlclk_miscdev);
770770
if (ret < 0) {
771-
printk(KERN_ERR " misc_register retruns %d\n", ret);
771+
printk(KERN_ERR "tlclk: misc_register returns %d.\n", ret);
772772
ret = -EBUSY;
773773
goto out3;
774774
}
775775

776776
tlclk_device = platform_device_register_simple("telco_clock",
777777
-1, NULL, 0);
778778
if (!tlclk_device) {
779-
printk(KERN_ERR " platform_device_register retruns 0x%X\n",
780-
(unsigned int) tlclk_device);
779+
printk(KERN_ERR "tlclk: platform_device_register failed.\n");
781780
ret = -EBUSY;
782781
goto out4;
783782
}
784783

785784
ret = sysfs_create_group(&tlclk_device->dev.kobj,
786785
&tlclk_attribute_group);
787786
if (ret) {
788-
printk(KERN_ERR "failed to create sysfs device attributes\n");
787+
printk(KERN_ERR "tlclk: failed to create sysfs device attributes.\n");
789788
sysfs_remove_group(&tlclk_device->dev.kobj,
790789
&tlclk_attribute_group);
791790
goto out5;

0 commit comments

Comments
 (0)