The patch titled
rtc-s3c: Use is_power_of_2() macro for simplicity.
has been removed from the -mm tree. Its filename was
rtc-s3c-use-is_power_of_2-macro-for-simplicity.patch
This patch was dropped because it was merged into mainline or a subsystem tree
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: rtc-s3c: Use is_power_of_2() macro for simplicity.
From: "Robert P. J. Day" <[EMAIL PROTECTED]>
Use is_power_of_2() macro for simplicity.
Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]>
Signed-off-by: Alessandro Zummo <[EMAIL PROTECTED]>
Cc: David Brownell <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
drivers/rtc/rtc-s3c.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff -puN drivers/rtc/rtc-s3c.c~rtc-s3c-use-is_power_of_2-macro-for-simplicity
drivers/rtc/rtc-s3c.c
--- a/drivers/rtc/rtc-s3c.c~rtc-s3c-use-is_power_of_2-macro-for-simplicity
+++ a/drivers/rtc/rtc-s3c.c
@@ -20,6 +20,7 @@
#include <linux/rtc.h>
#include <linux/bcd.h>
#include <linux/clk.h>
+#include <linux/log2.h>
#include <asm/hardware.h>
#include <asm/uaccess.h>
@@ -309,9 +310,7 @@ static int s3c_rtc_ioctl(struct device *
break;
case RTC_IRQP_SET:
- /* check for power of 2 */
-
- if ((arg & (arg-1)) != 0 || arg < 1) {
+ if (!is_power_of_2(arg)) {
ret = -EINVAL;
goto exit;
}
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
origin.patch
git-hwmon.patch
git-xfs.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html