提交 5a6534e4 编写于 作者: D David Brownell 提交者: Linus Torvalds

[PATCH] rtc: remove syslog spam on registration

This removes some syslog spam as RTC drivers register; debug messages
shouldn't come out at "info" level.
Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Acked-by: NAlessandro Zummo <a.zummo@towertech.it>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 9cef779e
...@@ -435,7 +435,7 @@ static int rtc_dev_add_device(struct class_device *class_dev, ...@@ -435,7 +435,7 @@ static int rtc_dev_add_device(struct class_device *class_dev,
goto err_cdev_del; goto err_cdev_del;
} }
dev_info(class_dev->dev, "rtc intf: dev (%d:%d)\n", dev_dbg(class_dev->dev, "rtc intf: dev (%d:%d)\n",
MAJOR(rtc->rtc_dev->devt), MAJOR(rtc->rtc_dev->devt),
MINOR(rtc->rtc_dev->devt)); MINOR(rtc->rtc_dev->devt));
......
...@@ -120,7 +120,7 @@ static int rtc_proc_add_device(struct class_device *class_dev, ...@@ -120,7 +120,7 @@ static int rtc_proc_add_device(struct class_device *class_dev,
ent->owner = rtc->owner; ent->owner = rtc->owner;
ent->data = class_dev; ent->data = class_dev;
dev_info(class_dev->dev, "rtc intf: proc\n"); dev_dbg(class_dev->dev, "rtc intf: proc\n");
} }
else else
rtc_dev = NULL; rtc_dev = NULL;
......
...@@ -83,7 +83,7 @@ static int __devinit rtc_sysfs_add_device(struct class_device *class_dev, ...@@ -83,7 +83,7 @@ static int __devinit rtc_sysfs_add_device(struct class_device *class_dev,
{ {
int err; int err;
dev_info(class_dev->dev, "rtc intf: sysfs\n"); dev_dbg(class_dev->dev, "rtc intf: sysfs\n");
err = sysfs_create_group(&class_dev->kobj, &rtc_attr_group); err = sysfs_create_group(&class_dev->kobj, &rtc_attr_group);
if (err) if (err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册