]> err.no Git - linux-2.6/commitdiff
[PATCH] RTC subsystem: compact error messages
authorAlessandro Zummo <a.zummo@towertech.it>
Tue, 11 Apr 2006 05:54:45 +0000 (22:54 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:47 +0000 (06:18 -0700)
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>
drivers/rtc/class.c
drivers/rtc/rtc-ds1672.c
drivers/rtc/rtc-ep93xx.c
drivers/rtc/rtc-m48t86.c
drivers/rtc/rtc-pcf8563.c
drivers/rtc/rtc-rs5c372.c
drivers/rtc/rtc-sa1100.c
drivers/rtc/rtc-test.c
drivers/rtc/rtc-x1205.c

index 8533936d50d86137383004ab75d0bdd67cfd4fc1..413c7d54ea10f19b9eeb5fa695b21b8ab7f11c66 100644 (file)
@@ -96,6 +96,8 @@ exit_idr:
        idr_remove(&rtc_idr, id);
 
 exit:
+       dev_err(dev, "rtc core: unable to register %s, err = %d\n",
+                       name, err);
        return ERR_PTR(err);
 }
 EXPORT_SYMBOL_GPL(rtc_device_register);
index 56a331367386fea0580894157e769d9ec97e299e..9be81fd4737c20c11cbcc4c2e466a41331c01434 100644 (file)
@@ -229,8 +229,6 @@ static int ds1672_probe(struct i2c_adapter *adapter, int address, int kind)
 
        if (IS_ERR(rtc)) {
                err = PTR_ERR(rtc);
-               dev_err(&client->dev,
-                       "unable to register the class device\n");
                goto exit_detach;
        }
 
index 6d9fe2cca28594160af6d5ce8073e449bb78d3be..e1a1169e46649f4be8c8917f5a1a9b6cc7230615 100644 (file)
@@ -109,7 +109,6 @@ static int __devinit ep93xx_rtc_probe(struct platform_device *dev)
                                &dev->dev, &ep93xx_rtc_ops, THIS_MODULE);
 
        if (IS_ERR(rtc)) {
-               dev_err(&dev->dev, "unable to register\n");
                return PTR_ERR(rtc);
        }
 
index 911b27fc8488b48c21a9132cf8c96473820c265c..f6e7ee04f3dc634002383f84438db3ad937b91c5 100644 (file)
@@ -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);
 
index 0a7fd0b4685a5e04b36b9ca833d7930352e2a501..ba9a583b7b6817ff073b4c70a5a93910fdc89fe0 100644 (file)
@@ -290,8 +290,6 @@ static int pcf8563_probe(struct i2c_adapter *adapter, int address, int kind)
 
        if (IS_ERR(rtc)) {
                err = PTR_ERR(rtc);
-               dev_err(&client->dev,
-                       "unable to register the class device\n");
                goto exit_detach;
        }
 
index 5e5cc10c675e71fa3f68298511491f27637a926f..7553d797603fd86d78a266d578765e439ea5aced 100644 (file)
@@ -233,8 +233,6 @@ static int rs5c372_probe(struct i2c_adapter *adapter, int address, int kind)
 
        if (IS_ERR(rtc)) {
                err = PTR_ERR(rtc);
-               dev_err(&client->dev,
-                       "unable to register the class device\n");
                goto exit_detach;
        }
 
index 83b2bb480a16da8586d67fc1275499efc8a82d94..0bfa6d2076f36f543e90dba0d5f4fc841beea88c 100644 (file)
@@ -341,7 +341,6 @@ static int sa1100_rtc_probe(struct platform_device *pdev)
                                THIS_MODULE);
 
        if (IS_ERR(rtc)) {
-               dev_err(&pdev->dev, "Unable to register the RTC device\n");
                return PTR_ERR(rtc);
        }
 
index 1bfe212b64a7398f27c13f384c722494f82a0e78..e1f7e8e86daffee9f96737442ef9d840904f6a0e 100644 (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);
index f3573ef7c3f591b609bd189c957825ab7bdff292..788b6d1f8f2fd282cac69e6b8a5c0e9a3698c9f2 100644 (file)
@@ -544,8 +544,6 @@ static int x1205_probe(struct i2c_adapter *adapter, int address, int kind)
 
        if (IS_ERR(rtc)) {
                err = PTR_ERR(rtc);
-               dev_err(&client->dev,
-                       "unable to register the class device\n");
                goto exit_detach;
        }