[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:
committed by
Linus Torvalds
parent
8289607249
commit
d1d65b7712
@@ -151,10 +151,8 @@ static int __devinit m48t86_rtc_probe(struct platform_device *dev)
|
||||
struct rtc_device *rtc = rtc_device_register("m48t86",
|
||||
&dev->dev, &m48t86_rtc_ops, THIS_MODULE);
|
||||
|
||||
if (IS_ERR(rtc)) {
|
||||
dev_err(&dev->dev, "unable to register\n");
|
||||
if (IS_ERR(rtc))
|
||||
return PTR_ERR(rtc);
|
||||
}
|
||||
|
||||
platform_set_drvdata(dev, rtc);
|
||||
|
||||
|
Reference in New Issue
Block a user