diff options
Diffstat (limited to 'arch/m68k/amiga/amisound.c')
-rw-r--r-- | arch/m68k/amiga/amisound.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/m68k/amiga/amisound.c b/arch/m68k/amiga/amisound.c index 1f5bfb584297..61e5c54625ae 100644 --- a/arch/m68k/amiga/amisound.c +++ b/arch/m68k/amiga/amisound.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/timer.h> | 12 | #include <linux/timer.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/string.h> | 14 | #include <linux/string.h> |
15 | #include <linux/module.h> | ||
15 | 16 | ||
16 | #include <asm/system.h> | 17 | #include <asm/system.h> |
17 | #include <asm/amigahw.h> | 18 | #include <asm/amigahw.h> |
@@ -21,7 +22,7 @@ static const signed char sine_data[] = { | |||
21 | 0, 39, 75, 103, 121, 127, 121, 103, 75, 39, | 22 | 0, 39, 75, 103, 121, 127, 121, 103, 75, 39, |
22 | 0, -39, -75, -103, -121, -127, -121, -103, -75, -39 | 23 | 0, -39, -75, -103, -121, -127, -121, -103, -75, -39 |
23 | }; | 24 | }; |
24 | #define DATA_SIZE (sizeof(sine_data)/sizeof(sine_data[0])) | 25 | #define DATA_SIZE ARRAY_SIZE(sine_data) |
25 | 26 | ||
26 | #define custom amiga_custom | 27 | #define custom amiga_custom |
27 | 28 | ||
@@ -31,6 +32,7 @@ static const signed char sine_data[] = { | |||
31 | */ | 32 | */ |
32 | 33 | ||
33 | volatile unsigned short amiga_audio_min_period = 124; /* Default for pre-OCS */ | 34 | volatile unsigned short amiga_audio_min_period = 124; /* Default for pre-OCS */ |
35 | EXPORT_SYMBOL(amiga_audio_min_period); | ||
34 | 36 | ||
35 | #define MAX_PERIOD (65535) | 37 | #define MAX_PERIOD (65535) |
36 | 38 | ||
@@ -40,6 +42,7 @@ volatile unsigned short amiga_audio_min_period = 124; /* Default for pre-OCS */ | |||
40 | */ | 42 | */ |
41 | 43 | ||
42 | unsigned short amiga_audio_period = MAX_PERIOD; | 44 | unsigned short amiga_audio_period = MAX_PERIOD; |
45 | EXPORT_SYMBOL(amiga_audio_period); | ||
43 | 46 | ||
44 | static unsigned long clock_constant; | 47 | static unsigned long clock_constant; |
45 | 48 | ||