Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339935
b: refs/heads/master
c: 61b001c
h: refs/heads/master
i:
  339933: f58a3c3
  339931: 3ed3483
  339927: 1fcc561
  339919: caf4057
  339903: 7bf64c1
v: v3
  • Loading branch information
Jon Hunter committed Nov 16, 2012
1 parent 95af770 commit 13129f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 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: b0cadb3c86fc99553b1f5c38c7770be1ad52aa26
refs/heads/master: 61b001c564b75bfb47bfb84b33008fc2a35c9a84
13 changes: 5 additions & 8 deletions trunk/arch/arm/mach-omap2/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,
const char *oh_name;
struct device_node *np;
struct omap_hwmod *oh;
struct resource irq_rsrc, mem_rsrc;
size_t size;
struct resource irq, mem;
int res = 0;
int r;

Expand Down Expand Up @@ -280,20 +279,18 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,

if (!of_have_populated_dt()) {
r = omap_hwmod_get_resource_byname(oh, IORESOURCE_IRQ, NULL,
&irq_rsrc);
&irq);
if (r)
return -ENXIO;
timer->irq = irq_rsrc.start;
timer->irq = irq.start;

r = omap_hwmod_get_resource_byname(oh, IORESOURCE_MEM, NULL,
&mem_rsrc);
&mem);
if (r)
return -ENXIO;
timer->phys_base = mem_rsrc.start;
size = mem_rsrc.end - mem_rsrc.start;

/* Static mapping, never released */
timer->io_base = ioremap(timer->phys_base, size);
timer->io_base = ioremap(mem.start, mem.end - mem.start);
}

if (!timer->io_base)
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/plat-omap/include/plat/dmtimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ int omap_dm_timers_active(void);
(_OMAP_TIMER_TICK_INT_MASK_COUNT_OFFSET | (WP_TOWR << WPSHIFT))

struct omap_dm_timer {
unsigned long phys_base;
int id;
int irq;
struct clk *fclk;
Expand Down

0 comments on commit 13129f3

Please sign in to comment.