diff options
author | Alessandro Zummo <a.zummo@towertech.it> | 2006-04-11 01:54:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-11 09:18:47 -0400 |
commit | d1d65b7712016ca5ff2e44470eb13e772999de94 (patch) | |
tree | 06f6e823cf5ca785f055b129c003c55b9cbdae86 /drivers/rtc/rtc-test.c | |
parent | 8289607249ad25ecfc9a3742873fcd8f319d5b09 (diff) |
[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>
Diffstat (limited to 'drivers/rtc/rtc-test.c')
-rw-r--r-- | drivers/rtc/rtc-test.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-test.c b/drivers/rtc/rtc-test.c index 1bfe212b64a7..e1f7e8e86daf 100644 --- a/drivers/rtc/rtc-test.c +++ b/drivers/rtc/rtc-test.c | |||
@@ -119,8 +119,6 @@ static int test_probe(struct platform_device *plat_dev) | |||
119 | &test_rtc_ops, THIS_MODULE); | 119 | &test_rtc_ops, THIS_MODULE); |
120 | if (IS_ERR(rtc)) { | 120 | if (IS_ERR(rtc)) { |
121 | err = PTR_ERR(rtc); | 121 | err = PTR_ERR(rtc); |
122 | dev_err(&plat_dev->dev, | ||
123 | "unable to register the class device\n"); | ||
124 | return err; | 122 | return err; |
125 | } | 123 | } |
126 | device_create_file(&plat_dev->dev, &dev_attr_irq); | 124 | device_create_file(&plat_dev->dev, &dev_attr_irq); |