Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69307
b: refs/heads/master
c: 0e5d544
h: refs/heads/master
i:
  69305: ed57d0d
  69303: 0ebbb38
v: v3
  • Loading branch information
Mark Brown authored and Jeff Garzik committed Oct 15, 2007
1 parent a6741ff commit 196038c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 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: 63bd8c48e04bbbc9cee3d752857914609d8d406f
refs/heads/master: 0e5d5442cbe3399d789d6a75c6e3a0db37f846f5
2 changes: 2 additions & 0 deletions trunk/arch/m68k/atari/atakeyb.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
* linux/arch/m68k/atari/atakeyb.c
*
* Atari Keyboard driver for 680x0 Linux
*
* This file is subject to the terms and conditions of the GNU General Public
Expand Down
7 changes: 3 additions & 4 deletions trunk/drivers/input/keyboard/atakbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ static void atakbd_interrupt(unsigned char scancode, char down)

static int __init atakbd_init(void)
{
int i, error;
int i;

if (!MACH_IS_ATARI || !ATARIHW_PRESENT(ST_MFP))
return -EIO;
Expand Down Expand Up @@ -247,10 +247,9 @@ static int __init atakbd_init(void)
}

/* error check */
error = input_register_device(atakbd_dev);
if (error) {
if (input_register_device(atakbd_dev)) {
input_free_device(atakbd_dev);
return error;
return -ENOMEM;
}

atari_input_keyboard_interrupt_hook = atakbd_interrupt;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/mtd/maps/pxa2xx-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>

#include <asm/io.h>
#include <asm/hardware.h>
#include <asm/cacheflush.h>

#include <asm/mach/flash.h>

static void pxa2xx_map_inval_cache(struct map_info *map, unsigned long from,
ssize_t len)
{
flush_ioremap_region(map->phys, map->cached, from, len);
consistent_sync((char *)map->cached + from, len, DMA_FROM_DEVICE);
}

struct pxa2xx_flash_info {
Expand Down
10 changes: 7 additions & 3 deletions trunk/drivers/net/natsemi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,7 @@ static int netdev_open(struct net_device *dev)

/* Set the timer to check for link beat. */
init_timer(&np->timer);
np->timer.expires = jiffies + NATSEMI_TIMER_FREQ;
np->timer.expires = round_jiffies(jiffies + NATSEMI_TIMER_FREQ);
np->timer.data = (unsigned long)dev;
np->timer.function = &netdev_timer; /* timer handler */
add_timer(&np->timer);
Expand Down Expand Up @@ -1856,7 +1856,11 @@ static void netdev_timer(unsigned long data)
next_tick = 1;
}
}
mod_timer(&np->timer, jiffies + next_tick);

if (next_tick > 1)
mod_timer(&np->timer, round_jiffies(jiffies + next_tick));
else
mod_timer(&np->timer, jiffies + next_tick);
}

static void dump_ring(struct net_device *dev)
Expand Down Expand Up @@ -3331,7 +3335,7 @@ static int natsemi_resume (struct pci_dev *pdev)
spin_unlock_irq(&np->lock);
enable_irq(dev->irq);

mod_timer(&np->timer, jiffies + 1*HZ);
mod_timer(&np->timer, round_jiffies(jiffies + 1*HZ));
}
netif_device_attach(dev);
out:
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/scsi/gdth.c
Original file line number Diff line number Diff line change
Expand Up @@ -5213,10 +5213,6 @@ static int __init gdth_init(void)
#endif /* CONFIG_PCI */

TRACE2(("gdth_detect() %d controller detected\n", gdth_ctr_count));

if (list_empty(&gdth_instances))
return -ENODEV;

#ifdef GDTH_STATISTICS
TRACE2(("gdth_detect(): Initializing timer !\n"));
init_timer(&gdth_timer);
Expand Down

0 comments on commit 196038c

Please sign in to comment.