Skip to contentSkip to conversation

drivers-rtc-rtc-pcf8563c-use-ptr_ret.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 8, 2013 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Subject: [merged] drivers-rtc-rtc-pcf8563c-use-ptr_ret.patch removed from -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 08 Jul 2013 12:35:00 -0700

The patch titled

     Subject: drivers/rtc/rtc-pcf8563.c: use PTR_RET()
has been removed from the -mm tree.  Its filename was
     drivers-rtc-rtc-pcf8563c-use-ptr_ret.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Sachin Kamat <[email protected]>
Subject: drivers/rtc/rtc-pcf8563.c: use PTR_RET()

Use of PTR_RET() simplifies the code.

---

 drivers/rtc/rtc-pcf8563.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/rtc/rtc-pcf8563.c renamed from drivers/rtc/rtc-pcf8563.c~drivers-rtc-rtc-pcf8563c-use-ptr_ret +1 -2
diff -puN drivers/rtc/rtc-pcf8563.c~drivers-rtc-rtc-pcf8563c-use-ptr_ret drivers/rtc/rtc-pcf8563.c
@@ -20,6 +20,7 @@
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/of.h>
+#include <linux/err.h>
 
 #define DRV_VERSION "0.4.3"
 
@@ -263,10 +264,7 @@ static int pcf8563_probe(struct i2c_clie
 				pcf8563_driver.driver.name,
 				&pcf8563_rtc_ops, THIS_MODULE);
 
-	if (IS_ERR(pcf8563->rtc))
-		return PTR_ERR(pcf8563->rtc);