Deleted Added
full compact
28c28
< __FBSDID("$FreeBSD: head/sys/arm/at91/at91_pit.c 213496 2010-10-06 22:25:21Z cognet $");
---
> __FBSDID("$FreeBSD: head/sys/arm/at91/at91_pit.c 234281 2012-04-14 11:29:32Z marius $");
61a62
>
67a69
>
115c117
< panic("couldn't allocate register resources");
---
> panic("couldn't allocate register resources");
119c121
< RF_ACTIVE | RF_SHAREABLE);
---
> RF_ACTIVE | RF_SHAREABLE);
127,129c129,131
< err = bus_setup_intr(dev, irq, INTR_TYPE_CLK, pit_intr,
< NULL, NULL, &ih);
<
---
> err = bus_setup_intr(dev, irq, INTR_TYPE_CLK, pit_intr, NULL, NULL,
> &ih);
>
133,136c135,137
< //Enable the PIT here.
< WR4(sc, PIT_MR,
< PIT_PIV(at91_master_clock / PIT_PRESCALE / hz) |
< PIT_EN | PIT_IEN);
---
> /* Enable the PIT here. */
> WR4(sc, PIT_MR, PIT_PIV(at91_master_clock / PIT_PRESCALE / hz) |
> PIT_EN | PIT_IEN);
144c145
< {0,0},
---
> DEVMETHOD_END
155c156,157
< DRIVER_MODULE(at91_pit, atmelarm, at91pit_driver, at91pit_devclass, 0, 0);
---
> DRIVER_MODULE(at91_pit, atmelarm, at91pit_driver, at91pit_devclass, NULL,
> NULL);
178c180
< uint32_t piir, icnt;
---
> uint32_t piir, icnt;
195c197
< pit_freq = at91_master_clock / PIT_PRESCALE;
---
> pit_freq = at91_master_clock / PIT_PRESCALE;
213a216
>
218a222
>
223a228
>