[PATCH] RTC subsystem: compact error messages

Move registration error message from drivers to core.

Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Alessandro Zummo
2006-04-10 22:54:45 -07:00
committed by Linus Torvalds
parent 8289607249
commit d1d65b7712
9 changed files with 3 additions and 15 deletions

View File

@@ -119,8 +119,6 @@ static int test_probe(struct platform_device *plat_dev)
&test_rtc_ops, THIS_MODULE);
if (IS_ERR(rtc)) {
err = PTR_ERR(rtc);
dev_err(&plat_dev->dev,
"unable to register the class device\n");
return err;
}
device_create_file(&plat_dev->dev, &dev_attr_irq);