X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sound%2Foss%2Fad1816.c;h=95586de02028cf57d4a628044885953b92ba57f0;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=c2abdddd7fe2fef4052f803223dda47c3a948dc1;hpb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;p=linux-2.6.git diff --git a/sound/oss/ad1816.c b/sound/oss/ad1816.c index c2abdddd7..95586de02 100644 --- a/sound/oss/ad1816.c +++ b/sound/oss/ad1816.c @@ -592,7 +592,7 @@ typedef struct mixer_def mixer_ent; {{reg_l, pola_l, pos_l, len_l}, {reg_r, pola_r, pos_r, len_r}} -mixer_ent mix_devices[SOUND_MIXER_NRDEVICES][2] = { +static mixer_ent mix_devices[SOUND_MIXER_NRDEVICES][2] = { MIX_ENT(SOUND_MIXER_VOLUME, 14, 1, 8, 5, 14, 1, 0, 5), MIX_ENT(SOUND_MIXER_BASS, 0, 0, 0, 0, 0, 0, 0, 0), MIX_ENT(SOUND_MIXER_TREBLE, 0, 0, 0, 0, 0, 0, 0, 0), @@ -1215,16 +1215,16 @@ static int __initdata dma2 = -1; /* use isapnp for configuration */ static int isapnp = 1; static int isapnpjump; -MODULE_PARM(isapnp, "i"); -MODULE_PARM(isapnpjump, "i"); +module_param(isapnp, bool, 0); +module_param(isapnpjump, int, 0); #endif -MODULE_PARM(io,"i"); -MODULE_PARM(irq,"i"); -MODULE_PARM(dma,"i"); -MODULE_PARM(dma2,"i"); -MODULE_PARM(ad1816_clockfreq,"i"); -MODULE_PARM(options,"i"); +module_param(io, int, 0); +module_param(irq, int, 0); +module_param(dma, int, 0); +module_param(dma2, int, 0); +module_param(ad1816_clockfreq, int, 0); +module_param(options, int, 0); #ifdef __ISAPNP__ static struct { @@ -1235,18 +1235,19 @@ static struct { } isapnp_ad1816_list[] __initdata = { { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A','D','S'), ISAPNP_FUNCTION(0x7150), - 0 }, + NULL }, { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A','D','S'), ISAPNP_FUNCTION(0x7180), - 0 }, + NULL }, {0} }; MODULE_DEVICE_TABLE(isapnp, isapnp_ad1816_list); -void __init ad1816_config_pnp_card(struct pnp_card *card, unsigned short vendor, - unsigned short function) +static void __init ad1816_config_pnp_card(struct pnp_card *card, + unsigned short vendor, + unsigned short function) { struct address_info cfg; struct pnp_dev *card_dev = pnp_find_dev(card, vendor, function, NULL); @@ -1270,7 +1271,7 @@ void __init ad1816_config_pnp_card(struct pnp_card *card, unsigned short vendor, } } -void __init ad1816_config_pnp_cards(void) +static void __init ad1816_config_pnp_cards(void) { int nr_pnp_cfg; int i;