Skip to content

Commit

Permalink
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-…
Browse files Browse the repository at this point in the history
…linus

* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
  [MIPS] ARC: Fix several compiler warnings.
  [MIPS] ISA: Fix typo
  [CHAR] ds1286: Fix handling of seconds in RTC_ALM_SET ioctl.
  • Loading branch information
Linus Torvalds committed Mar 8, 2007
2 parents c91a325 + b2e569d commit 06aa5b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions arch/mips/arc/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ LONG *_prom_argv, *_prom_envp;
void __init prom_init(void)
{
PSYSTEM_PARAMETER_BLOCK pb = PROMBLOCK;

romvec = ROMVECTOR;
ULONG cnt;
CHAR c;

prom_argc = fw_arg0;
_prom_argv = (LONG *) fw_arg1;
_prom_envp = (LONG *) fw_arg2;

if (pb->magic != 0x53435241) {
printk(KERN_CRIT "Aieee, bad prom vector magic %08lx\n", pb->magic);
printk(KERN_CRIT "Aieee, bad prom vector magic %08lx\n",
(unsigned long) pb->magic);
while(1)
;
}
Expand Down
9 changes: 6 additions & 3 deletions drivers/char/ds1286.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,19 @@ static int ds1286_ioctl(struct inode *inode, struct file *file,

hrs = alm_tm.tm_hour;
min = alm_tm.tm_min;
sec = alm_tm.tm_sec;

if (hrs >= 24)
hrs = 0xff;

if (min >= 60)
min = 0xff;

BIN_TO_BCD(sec);
BIN_TO_BCD(min);
BIN_TO_BCD(hrs);
if (sec != 0)
return -EINVAL;

min = BIN2BCD(min);
min = BIN2BCD(hrs);

spin_lock(&ds1286_lock);
rtc_write(hrs, RTC_HOURS_ALARM);
Expand Down
2 changes: 1 addition & 1 deletion include/asm-mips/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
*
*/

#ifndef GENERIC_ISA_DMA_SUPPORT_BROKEN
#ifndef CONFIG_GENERIC_ISA_DMA_SUPPORT_BROKEN
#define MAX_DMA_CHANNELS 8
#endif

Expand Down

0 comments on commit 06aa5b4

Please sign in to comment.