Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83526
b: refs/heads/master
c: 9974b6e
h: refs/heads/master
v: v3
  • Loading branch information
Robert P. J. Day authored and Linus Torvalds committed Feb 6, 2008
1 parent 3d33568 commit 318a9fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 037e291cc77a4beb0379a8c74e3d82e49a476b84
refs/heads/master: 9974b6ea7b85a32f34f824443f47aa501c85ee8f
5 changes: 2 additions & 3 deletions trunk/drivers/rtc/rtc-s3c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -309,9 +310,7 @@ static int s3c_rtc_ioctl(struct device *dev,
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;
}
Expand Down

0 comments on commit 318a9fc

Please sign in to comment.