diff options
author | Alex Raimondi <raimondi@miromico.ch> | 2008-09-22 21:40:55 +0200 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-10-05 19:33:48 +0200 |
commit | 300bb762513f12068bf6166e0a1a02a4031a979c (patch) | |
tree | bfebd28b2753936a7009cda2559265364f65783c /arch/avr32/mach-at32ap/clock.h | |
parent | 787928e7473246991177e8cd7eeaf4cb1b3a8fbc (diff) | |
download | linux-300bb762513f12068bf6166e0a1a02a4031a979c.tar.bz2 |
avr32: Replace static clock list with dynamic linked list
This replaces the at32_clock_list array with a linked list.
Clocks can now be registered (added) to the list.
Signed-off-by: Alex Raimondi <raimondi@miromico.ch>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/mach-at32ap/clock.h')
-rw-r--r-- | arch/avr32/mach-at32ap/clock.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/avr32/mach-at32ap/clock.h b/arch/avr32/mach-at32ap/clock.h index bb8e1f295835..623bf0e9a1e7 100644 --- a/arch/avr32/mach-at32ap/clock.h +++ b/arch/avr32/mach-at32ap/clock.h @@ -12,8 +12,13 @@ * published by the Free Software Foundation. */ #include <linux/clk.h> +#include <linux/list.h> + + +void at32_clk_register(struct clk *clk); struct clk { + struct list_head list; /* linking element */ const char *name; /* Clock name/function */ struct device *dev; /* Device the clock is used by */ struct clk *parent; /* Parent clock, if any */ @@ -25,6 +30,3 @@ struct clk { u16 users; /* Enabled if non-zero */ u16 index; /* Sibling index */ }; - -extern struct clk *at32_clock_list[]; -extern unsigned int at32_nr_clocks; |