diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-04-11 10:58:24 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-05-29 04:00:32 -0400 |
commit | 01d25d460a3b28aab537fab9a0038d1b5832ce28 (patch) | |
tree | 2a3ce6727e4a5cbb0cd763f20698ebc169659fd1 /sound/pci | |
parent | 01ef355f0c34d6fbb451512e70e4cf336776b7fd (diff) |
[ALSA] Replace pci_module_init() with pci_register_driver()
Documentation,ALS4000 driver,ATIIXP driver,ATIIXP-modem driver
AZT3328 driver,BT87x driver,CMIPCI driver,CS4281 driver
ENS1370/1+ driver,ES1938 driver,ES1968 driver,FM801 driver
Intel8x0 driver,Intel8x0-modem driver,Maestro3 driver,RME32 driver
RME96 driver,SonicVibes driver,VIA82xx driver,VIA82xx-modem driver
ALI5451 driver,au88x0 driver,CA0106 driver,CS46xx driver
EMU10K1/EMU10K2 driver,HDA Intel driver,ICE1712 driver,ICE1724 driver
KORG1212 driver,MIXART driver,NM256 driver,RME HDSP driver
RME9652 driver,Trident driver,Digigram VX222 driver,YMFPCI driver
Replace the obsolete pci_module_init() with pci_register_driver().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
36 files changed, 174 insertions, 55 deletions
diff --git a/sound/pci/ali5451/ali5451.c b/sound/pci/ali5451/ali5451.c index 984d5d4ba4e1..038f56ad42f1 100644 --- a/sound/pci/ali5451/ali5451.c +++ b/sound/pci/ali5451/ali5451.c | |||
@@ -2270,7 +2270,7 @@ static struct pci_driver driver = { | |||
2270 | 2270 | ||
2271 | static int __init alsa_card_ali_init(void) | 2271 | static int __init alsa_card_ali_init(void) |
2272 | { | 2272 | { |
2273 | return pci_module_init(&driver); | 2273 | return pci_register_driver(&driver); |
2274 | } | 2274 | } |
2275 | 2275 | ||
2276 | static void __exit alsa_card_ali_exit(void) | 2276 | static void __exit alsa_card_ali_exit(void) |
diff --git a/sound/pci/als4000.c b/sound/pci/als4000.c index f1a5f5723ee6..cdc1134cdedd 100644 --- a/sound/pci/als4000.c +++ b/sound/pci/als4000.c | |||
@@ -777,7 +777,7 @@ static struct pci_driver driver = { | |||
777 | 777 | ||
778 | static int __init alsa_card_als4000_init(void) | 778 | static int __init alsa_card_als4000_init(void) |
779 | { | 779 | { |
780 | return pci_module_init(&driver); | 780 | return pci_register_driver(&driver); |
781 | } | 781 | } |
782 | 782 | ||
783 | static void __exit alsa_card_als4000_exit(void) | 783 | static void __exit alsa_card_als4000_exit(void) |
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index 6b04c0acc6f7..06551a69fb40 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c | |||
@@ -1645,7 +1645,7 @@ static struct pci_driver driver = { | |||
1645 | 1645 | ||
1646 | static int __init alsa_card_atiixp_init(void) | 1646 | static int __init alsa_card_atiixp_init(void) |
1647 | { | 1647 | { |
1648 | return pci_module_init(&driver); | 1648 | return pci_register_driver(&driver); |
1649 | } | 1649 | } |
1650 | 1650 | ||
1651 | static void __exit alsa_card_atiixp_exit(void) | 1651 | static void __exit alsa_card_atiixp_exit(void) |
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c index fb7cecea846d..9220aae632b0 100644 --- a/sound/pci/atiixp_modem.c +++ b/sound/pci/atiixp_modem.c | |||
@@ -1332,7 +1332,7 @@ static struct pci_driver driver = { | |||
1332 | 1332 | ||
1333 | static int __init alsa_card_atiixp_init(void) | 1333 | static int __init alsa_card_atiixp_init(void) |
1334 | { | 1334 | { |
1335 | return pci_module_init(&driver); | 1335 | return pci_register_driver(&driver); |
1336 | } | 1336 | } |
1337 | 1337 | ||
1338 | static void __exit alsa_card_atiixp_exit(void) | 1338 | static void __exit alsa_card_atiixp_exit(void) |
diff --git a/sound/pci/au88x0/au88x0.c b/sound/pci/au88x0/au88x0.c index 889b4a1a51a1..f6236c63aaaa 100644 --- a/sound/pci/au88x0/au88x0.c +++ b/sound/pci/au88x0/au88x0.c | |||
@@ -375,7 +375,7 @@ static struct pci_driver driver = { | |||
375 | // initialization of the module | 375 | // initialization of the module |
376 | static int __init alsa_card_vortex_init(void) | 376 | static int __init alsa_card_vortex_init(void) |
377 | { | 377 | { |
378 | return pci_module_init(&driver); | 378 | return pci_register_driver(&driver); |
379 | } | 379 | } |
380 | 380 | ||
381 | // clean up the module | 381 | // clean up the module |
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c index b8ae534125c1..72bba7b2d983 100644 --- a/sound/pci/azt3328.c +++ b/sound/pci/azt3328.c | |||
@@ -1520,7 +1520,7 @@ static int __init alsa_card_azf3328_init(void) | |||
1520 | { | 1520 | { |
1521 | int err; | 1521 | int err; |
1522 | snd_azf3328_dbgcallenter(); | 1522 | snd_azf3328_dbgcallenter(); |
1523 | err = pci_module_init(&driver); | 1523 | err = pci_register_driver(&driver); |
1524 | snd_azf3328_dbgcallleave(); | 1524 | snd_azf3328_dbgcallleave(); |
1525 | return err; | 1525 | return err; |
1526 | } | 1526 | } |
diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c index 89a7ffe5e7d7..defdc5a459f0 100644 --- a/sound/pci/bt87x.c +++ b/sound/pci/bt87x.c | |||
@@ -918,7 +918,7 @@ static int __init alsa_card_bt87x_init(void) | |||
918 | { | 918 | { |
919 | if (load_all) | 919 | if (load_all) |
920 | driver.id_table = snd_bt87x_default_ids; | 920 | driver.id_table = snd_bt87x_default_ids; |
921 | return pci_module_init(&driver); | 921 | return pci_register_driver(&driver); |
922 | } | 922 | } |
923 | 923 | ||
924 | static void __exit alsa_card_bt87x_exit(void) | 924 | static void __exit alsa_card_bt87x_exit(void) |
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index 901e42bdc8bd..d4cb8edf7080 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c | |||
@@ -1268,7 +1268,7 @@ static int __init alsa_card_ca0106_init(void) | |||
1268 | { | 1268 | { |
1269 | int err; | 1269 | int err; |
1270 | 1270 | ||
1271 | if ((err = pci_module_init(&driver)) > 0) | 1271 | if ((err = pci_register_driver(&driver)) > 0) |
1272 | return err; | 1272 | return err; |
1273 | 1273 | ||
1274 | return 0; | 1274 | return 0; |
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index 113208fbde1b..b4503385ea69 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c | |||
@@ -519,40 +519,50 @@ inline static unsigned char snd_cmipci_read_b(cmipci_t *cm, unsigned int cmd) | |||
519 | } | 519 | } |
520 | 520 | ||
521 | /* bit operations for dword register */ | 521 | /* bit operations for dword register */ |
522 | static void snd_cmipci_set_bit(cmipci_t *cm, unsigned int cmd, unsigned int flag) | 522 | static int snd_cmipci_set_bit(cmipci_t *cm, unsigned int cmd, unsigned int flag) |
523 | { | 523 | { |
524 | unsigned int val; | 524 | unsigned int val, oval; |
525 | val = inl(cm->iobase + cmd); | 525 | val = oval = inl(cm->iobase + cmd); |
526 | val |= flag; | 526 | val |= flag; |
527 | if (val == oval) | ||
528 | return 0; | ||
527 | outl(val, cm->iobase + cmd); | 529 | outl(val, cm->iobase + cmd); |
530 | return 1; | ||
528 | } | 531 | } |
529 | 532 | ||
530 | static void snd_cmipci_clear_bit(cmipci_t *cm, unsigned int cmd, unsigned int flag) | 533 | static int snd_cmipci_clear_bit(cmipci_t *cm, unsigned int cmd, unsigned int flag) |
531 | { | 534 | { |
532 | unsigned int val; | 535 | unsigned int val, oval; |
533 | val = inl(cm->iobase + cmd); | 536 | val = oval = inl(cm->iobase + cmd); |
534 | val &= ~flag; | 537 | val &= ~flag; |
538 | if (val == oval) | ||
539 | return 0; | ||
535 | outl(val, cm->iobase + cmd); | 540 | outl(val, cm->iobase + cmd); |
541 | return 1; | ||
536 | } | 542 | } |
537 | 543 | ||
538 | #if 0 // not used | ||
539 | /* bit operations for byte register */ | 544 | /* bit operations for byte register */ |
540 | static void snd_cmipci_set_bit_b(cmipci_t *cm, unsigned int cmd, unsigned char flag) | 545 | static int snd_cmipci_set_bit_b(cmipci_t *cm, unsigned int cmd, unsigned char flag) |
541 | { | 546 | { |
542 | unsigned char val; | 547 | unsigned char val, oval; |
543 | val = inb(cm->iobase + cmd); | 548 | val = oval = inb(cm->iobase + cmd); |
544 | val |= flag; | 549 | val |= flag; |
550 | if (val == oval) | ||
551 | return 0; | ||
545 | outb(val, cm->iobase + cmd); | 552 | outb(val, cm->iobase + cmd); |
553 | return 1; | ||
546 | } | 554 | } |
547 | 555 | ||
548 | static void snd_cmipci_clear_bit_b(cmipci_t *cm, unsigned int cmd, unsigned char flag) | 556 | static int snd_cmipci_clear_bit_b(cmipci_t *cm, unsigned int cmd, unsigned char flag) |
549 | { | 557 | { |
550 | unsigned char val; | 558 | unsigned char val, oval; |
551 | val = inb(cm->iobase + cmd); | 559 | val = oval = inb(cm->iobase + cmd); |
552 | val &= ~flag; | 560 | val &= ~flag; |
561 | if (val == oval) | ||
562 | return 0; | ||
553 | outb(val, cm->iobase + cmd); | 563 | outb(val, cm->iobase + cmd); |
564 | return 1; | ||
554 | } | 565 | } |
555 | #endif | ||
556 | 566 | ||
557 | 567 | ||
558 | /* | 568 | /* |
@@ -2250,8 +2260,8 @@ DEFINE_SWITCH_ARG(exchange_dac, CM_REG_MISC_CTRL, CM_XCHGDAC, 0, 0, 0); /* rever | |||
2250 | DEFINE_SWITCH_ARG(exchange_dac, CM_REG_MISC_CTRL, CM_XCHGDAC, CM_XCHGDAC, 0, 0); | 2260 | DEFINE_SWITCH_ARG(exchange_dac, CM_REG_MISC_CTRL, CM_XCHGDAC, CM_XCHGDAC, 0, 0); |
2251 | #endif | 2261 | #endif |
2252 | DEFINE_BIT_SWITCH_ARG(fourch, CM_REG_MISC_CTRL, CM_N4SPK3D, 0, 0); | 2262 | DEFINE_BIT_SWITCH_ARG(fourch, CM_REG_MISC_CTRL, CM_N4SPK3D, 0, 0); |
2253 | DEFINE_BIT_SWITCH_ARG(line_rear, CM_REG_MIXER1, CM_SPK4, 1, 0); | 2263 | // DEFINE_BIT_SWITCH_ARG(line_rear, CM_REG_MIXER1, CM_SPK4, 1, 0); |
2254 | DEFINE_BIT_SWITCH_ARG(line_bass, CM_REG_LEGACY_CTRL, CM_LINE_AS_BASS, 0, 0); | 2264 | // DEFINE_BIT_SWITCH_ARG(line_bass, CM_REG_LEGACY_CTRL, CM_LINE_AS_BASS, 0, 0); |
2255 | // DEFINE_BIT_SWITCH_ARG(joystick, CM_REG_FUNCTRL1, CM_JYSTK_EN, 0, 0); /* now module option */ | 2265 | // DEFINE_BIT_SWITCH_ARG(joystick, CM_REG_FUNCTRL1, CM_JYSTK_EN, 0, 0); /* now module option */ |
2256 | DEFINE_SWITCH_ARG(modem, CM_REG_MISC_CTRL, CM_FLINKON|CM_FLINKOFF, CM_FLINKON, 0, 0); | 2266 | DEFINE_SWITCH_ARG(modem, CM_REG_MISC_CTRL, CM_FLINKON|CM_FLINKOFF, CM_FLINKON, 0, 0); |
2257 | 2267 | ||
@@ -2300,10 +2310,114 @@ static int snd_cmipci_spdout_enable_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_v | |||
2300 | } | 2310 | } |
2301 | 2311 | ||
2302 | 2312 | ||
2313 | static int snd_cmipci_line_in_mode_info(snd_kcontrol_t *kcontrol, | ||
2314 | snd_ctl_elem_info_t *uinfo) | ||
2315 | { | ||
2316 | cmipci_t *cm = snd_kcontrol_chip(kcontrol); | ||
2317 | static char *texts[3] = { "Line-In", "Rear Output", "Bass Output" }; | ||
2318 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; | ||
2319 | uinfo->count = 1; | ||
2320 | uinfo->value.enumerated.items = cm->chip_version >= 39 ? 3 : 2; | ||
2321 | if (uinfo->value.enumerated.item >= uinfo->value.enumerated.items) | ||
2322 | uinfo->value.enumerated.item = uinfo->value.enumerated.items - 1; | ||
2323 | strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]); | ||
2324 | return 0; | ||
2325 | } | ||
2326 | |||
2327 | static inline unsigned int get_line_in_mode(cmipci_t *cm) | ||
2328 | { | ||
2329 | unsigned int val; | ||
2330 | if (cm->chip_version >= 39) { | ||
2331 | val = snd_cmipci_read(cm, CM_REG_LEGACY_CTRL); | ||
2332 | if (val & CM_LINE_AS_BASS) | ||
2333 | return 2; | ||
2334 | } | ||
2335 | val = snd_cmipci_read_b(cm, CM_REG_MIXER1); | ||
2336 | if (val & CM_SPK4) | ||
2337 | return 1; | ||
2338 | return 0; | ||
2339 | } | ||
2340 | |||
2341 | static int snd_cmipci_line_in_mode_get(snd_kcontrol_t *kcontrol, | ||
2342 | snd_ctl_elem_value_t *ucontrol) | ||
2343 | { | ||
2344 | cmipci_t *cm = snd_kcontrol_chip(kcontrol); | ||
2345 | |||
2346 | spin_lock_irq(&cm->reg_lock); | ||
2347 | ucontrol->value.enumerated.item[0] = get_line_in_mode(cm); | ||
2348 | spin_unlock_irq(&cm->reg_lock); | ||
2349 | return 0; | ||
2350 | } | ||
2351 | |||
2352 | static int snd_cmipci_line_in_mode_put(snd_kcontrol_t *kcontrol, | ||
2353 | snd_ctl_elem_value_t *ucontrol) | ||
2354 | { | ||
2355 | cmipci_t *cm = snd_kcontrol_chip(kcontrol); | ||
2356 | int change; | ||
2357 | |||
2358 | spin_lock_irq(&cm->reg_lock); | ||
2359 | if (ucontrol->value.enumerated.item[0] == 2) | ||
2360 | change = snd_cmipci_set_bit(cm, CM_REG_LEGACY_CTRL, CM_LINE_AS_BASS); | ||
2361 | else | ||
2362 | change = snd_cmipci_clear_bit(cm, CM_REG_LEGACY_CTRL, CM_LINE_AS_BASS); | ||
2363 | if (ucontrol->value.enumerated.item[0] == 1) | ||
2364 | change |= snd_cmipci_set_bit_b(cm, CM_REG_MIXER1, CM_SPK4); | ||
2365 | else | ||
2366 | change |= snd_cmipci_clear_bit_b(cm, CM_REG_MIXER1, CM_SPK4); | ||
2367 | spin_unlock_irq(&cm->reg_lock); | ||
2368 | return change; | ||
2369 | } | ||
2370 | |||
2371 | static int snd_cmipci_mic_in_mode_info(snd_kcontrol_t *kcontrol, | ||
2372 | snd_ctl_elem_info_t *uinfo) | ||
2373 | { | ||
2374 | static char *texts[2] = { "Mic-In", "Center/LFE Output" }; | ||
2375 | uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; | ||
2376 | uinfo->count = 1; | ||
2377 | uinfo->value.enumerated.items = 2; | ||
2378 | if (uinfo->value.enumerated.item >= uinfo->value.enumerated.items) | ||
2379 | uinfo->value.enumerated.item = uinfo->value.enumerated.items - 1; | ||
2380 | strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]); | ||
2381 | return 0; | ||
2382 | } | ||
2383 | |||
2384 | static int snd_cmipci_mic_in_mode_get(snd_kcontrol_t *kcontrol, | ||
2385 | snd_ctl_elem_value_t *ucontrol) | ||
2386 | { | ||
2387 | cmipci_t *cm = snd_kcontrol_chip(kcontrol); | ||
2388 | /* same bit as spdi_phase */ | ||
2389 | spin_lock_irq(&cm->reg_lock); | ||
2390 | ucontrol->value.enumerated.item[0] = | ||
2391 | (snd_cmipci_read_b(cm, CM_REG_MISC) & CM_SPDIF_INVERSE) ? 1 : 0; | ||
2392 | spin_unlock_irq(&cm->reg_lock); | ||
2393 | return 0; | ||
2394 | } | ||
2395 | |||
2396 | static int snd_cmipci_mic_in_mode_put(snd_kcontrol_t *kcontrol, | ||
2397 | snd_ctl_elem_value_t *ucontrol) | ||
2398 | { | ||
2399 | cmipci_t *cm = snd_kcontrol_chip(kcontrol); | ||
2400 | int change; | ||
2401 | |||
2402 | spin_lock_irq(&cm->reg_lock); | ||
2403 | if (ucontrol->value.enumerated.item[0]) | ||
2404 | change = snd_cmipci_set_bit_b(cm, CM_REG_MISC, CM_SPDIF_INVERSE); | ||
2405 | else | ||
2406 | change = snd_cmipci_clear_bit_b(cm, CM_REG_MISC, CM_SPDIF_INVERSE); | ||
2407 | spin_unlock_irq(&cm->reg_lock); | ||
2408 | return change; | ||
2409 | } | ||
2410 | |||
2303 | /* both for CM8338/8738 */ | 2411 | /* both for CM8338/8738 */ |
2304 | static snd_kcontrol_new_t snd_cmipci_mixer_switches[] __devinitdata = { | 2412 | static snd_kcontrol_new_t snd_cmipci_mixer_switches[] __devinitdata = { |
2305 | DEFINE_MIXER_SWITCH("Four Channel Mode", fourch), | 2413 | DEFINE_MIXER_SWITCH("Four Channel Mode", fourch), |
2306 | DEFINE_MIXER_SWITCH("Line-In As Rear", line_rear), | 2414 | { |
2415 | .name = "Line-In Mode", | ||
2416 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | ||
2417 | .info = snd_cmipci_line_in_mode_info, | ||
2418 | .get = snd_cmipci_line_in_mode_get, | ||
2419 | .put = snd_cmipci_line_in_mode_put, | ||
2420 | }, | ||
2307 | }; | 2421 | }; |
2308 | 2422 | ||
2309 | /* for non-multichannel chips */ | 2423 | /* for non-multichannel chips */ |
@@ -2341,10 +2455,15 @@ static snd_kcontrol_new_t snd_cmipci_old_mixer_switches[] __devinitdata = { | |||
2341 | 2455 | ||
2342 | /* only for model 039 or later */ | 2456 | /* only for model 039 or later */ |
2343 | static snd_kcontrol_new_t snd_cmipci_extra_mixer_switches[] __devinitdata = { | 2457 | static snd_kcontrol_new_t snd_cmipci_extra_mixer_switches[] __devinitdata = { |
2344 | DEFINE_MIXER_SWITCH("Line-In As Bass", line_bass), | ||
2345 | DEFINE_MIXER_SWITCH("IEC958 In Select", spdif_in_sel2), | 2458 | DEFINE_MIXER_SWITCH("IEC958 In Select", spdif_in_sel2), |
2346 | DEFINE_MIXER_SWITCH("IEC958 In Phase Inverse", spdi_phase2), | 2459 | DEFINE_MIXER_SWITCH("IEC958 In Phase Inverse", spdi_phase2), |
2347 | DEFINE_MIXER_SWITCH("Mic As Center/LFE", spdi_phase), /* same bit as spdi_phase */ | 2460 | { |
2461 | .name = "Mic-In Mode", | ||
2462 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | ||
2463 | .info = snd_cmipci_mic_in_mode_info, | ||
2464 | .get = snd_cmipci_mic_in_mode_get, | ||
2465 | .put = snd_cmipci_mic_in_mode_put, | ||
2466 | } | ||
2348 | }; | 2467 | }; |
2349 | 2468 | ||
2350 | /* card control switches */ | 2469 | /* card control switches */ |
@@ -2944,7 +3063,7 @@ static struct pci_driver driver = { | |||
2944 | 3063 | ||
2945 | static int __init alsa_card_cmipci_init(void) | 3064 | static int __init alsa_card_cmipci_init(void) |
2946 | { | 3065 | { |
2947 | return pci_module_init(&driver); | 3066 | return pci_register_driver(&driver); |
2948 | } | 3067 | } |
2949 | 3068 | ||
2950 | static void __exit alsa_card_cmipci_exit(void) | 3069 | static void __exit alsa_card_cmipci_exit(void) |
diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c index d7e06b3caf97..8b42e8631f2a 100644 --- a/sound/pci/cs4281.c +++ b/sound/pci/cs4281.c | |||
@@ -2124,7 +2124,7 @@ static struct pci_driver driver = { | |||
2124 | 2124 | ||
2125 | static int __init alsa_card_cs4281_init(void) | 2125 | static int __init alsa_card_cs4281_init(void) |
2126 | { | 2126 | { |
2127 | return pci_module_init(&driver); | 2127 | return pci_register_driver(&driver); |
2128 | } | 2128 | } |
2129 | 2129 | ||
2130 | static void __exit alsa_card_cs4281_exit(void) | 2130 | static void __exit alsa_card_cs4281_exit(void) |
diff --git a/sound/pci/cs46xx/cs46xx.c b/sound/pci/cs46xx/cs46xx.c index 25d6466a867c..db212ecd792a 100644 --- a/sound/pci/cs46xx/cs46xx.c +++ b/sound/pci/cs46xx/cs46xx.c | |||
@@ -171,7 +171,7 @@ static struct pci_driver driver = { | |||
171 | 171 | ||
172 | static int __init alsa_card_cs46xx_init(void) | 172 | static int __init alsa_card_cs46xx_init(void) |
173 | { | 173 | { |
174 | return pci_module_init(&driver); | 174 | return pci_register_driver(&driver); |
175 | } | 175 | } |
176 | 176 | ||
177 | static void __exit alsa_card_cs46xx_exit(void) | 177 | static void __exit alsa_card_cs46xx_exit(void) |
diff --git a/sound/pci/emu10k1/emu10k1.c b/sound/pci/emu10k1/emu10k1.c index 6446afe19d80..2085a998eaeb 100644 --- a/sound/pci/emu10k1/emu10k1.c +++ b/sound/pci/emu10k1/emu10k1.c | |||
@@ -228,7 +228,7 @@ static struct pci_driver driver = { | |||
228 | 228 | ||
229 | static int __init alsa_card_emu10k1_init(void) | 229 | static int __init alsa_card_emu10k1_init(void) |
230 | { | 230 | { |
231 | return pci_module_init(&driver); | 231 | return pci_register_driver(&driver); |
232 | } | 232 | } |
233 | 233 | ||
234 | static void __exit alsa_card_emu10k1_exit(void) | 234 | static void __exit alsa_card_emu10k1_exit(void) |
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c index 27dfd8ddddf4..04ba63762d3b 100644 --- a/sound/pci/emu10k1/emu10k1x.c +++ b/sound/pci/emu10k1/emu10k1x.c | |||
@@ -1627,7 +1627,7 @@ static int __init alsa_card_emu10k1x_init(void) | |||
1627 | { | 1627 | { |
1628 | int err; | 1628 | int err; |
1629 | 1629 | ||
1630 | if ((err = pci_module_init(&driver)) > 0) | 1630 | if ((err = pci_register_driver(&driver)) > 0) |
1631 | return err; | 1631 | return err; |
1632 | 1632 | ||
1633 | return 0; | 1633 | return 0; |
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c index f910399db5c3..4e63498a58b2 100644 --- a/sound/pci/ens1370.c +++ b/sound/pci/ens1370.c | |||
@@ -2401,7 +2401,7 @@ static struct pci_driver driver = { | |||
2401 | 2401 | ||
2402 | static int __init alsa_card_ens137x_init(void) | 2402 | static int __init alsa_card_ens137x_init(void) |
2403 | { | 2403 | { |
2404 | return pci_module_init(&driver); | 2404 | return pci_register_driver(&driver); |
2405 | } | 2405 | } |
2406 | 2406 | ||
2407 | static void __exit alsa_card_ens137x_exit(void) | 2407 | static void __exit alsa_card_ens137x_exit(void) |
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c index b4ca8adf393c..b492777bc30f 100644 --- a/sound/pci/es1938.c +++ b/sound/pci/es1938.c | |||
@@ -1761,7 +1761,7 @@ static struct pci_driver driver = { | |||
1761 | 1761 | ||
1762 | static int __init alsa_card_es1938_init(void) | 1762 | static int __init alsa_card_es1938_init(void) |
1763 | { | 1763 | { |
1764 | return pci_module_init(&driver); | 1764 | return pci_register_driver(&driver); |
1765 | } | 1765 | } |
1766 | 1766 | ||
1767 | static void __exit alsa_card_es1938_exit(void) | 1767 | static void __exit alsa_card_es1938_exit(void) |
diff --git a/sound/pci/es1968.c b/sound/pci/es1968.c index faf63ff19c42..da10d40b2d91 100644 --- a/sound/pci/es1968.c +++ b/sound/pci/es1968.c | |||
@@ -2795,7 +2795,7 @@ static struct pci_driver driver = { | |||
2795 | 2795 | ||
2796 | static int __init alsa_card_es1968_init(void) | 2796 | static int __init alsa_card_es1968_init(void) |
2797 | { | 2797 | { |
2798 | return pci_module_init(&driver); | 2798 | return pci_register_driver(&driver); |
2799 | } | 2799 | } |
2800 | 2800 | ||
2801 | static void __exit alsa_card_es1968_exit(void) | 2801 | static void __exit alsa_card_es1968_exit(void) |
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c index 3291434f3e0c..ff10e637a95e 100644 --- a/sound/pci/fm801.c +++ b/sound/pci/fm801.c | |||
@@ -1469,7 +1469,7 @@ static struct pci_driver driver = { | |||
1469 | 1469 | ||
1470 | static int __init alsa_card_fm801_init(void) | 1470 | static int __init alsa_card_fm801_init(void) |
1471 | { | 1471 | { |
1472 | return pci_module_init(&driver); | 1472 | return pci_register_driver(&driver); |
1473 | } | 1473 | } |
1474 | 1474 | ||
1475 | static void __exit alsa_card_fm801_exit(void) | 1475 | static void __exit alsa_card_fm801_exit(void) |
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 959953ca320a..cbc9ca73c2ab 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -1439,7 +1439,7 @@ static struct pci_driver driver = { | |||
1439 | 1439 | ||
1440 | static int __init alsa_card_azx_init(void) | 1440 | static int __init alsa_card_azx_init(void) |
1441 | { | 1441 | { |
1442 | return pci_module_init(&driver); | 1442 | return pci_register_driver(&driver); |
1443 | } | 1443 | } |
1444 | 1444 | ||
1445 | static void __exit alsa_card_azx_exit(void) | 1445 | static void __exit alsa_card_azx_exit(void) |
diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index 79fba6be3503..a2545a5b26c4 100644 --- a/sound/pci/ice1712/ice1712.c +++ b/sound/pci/ice1712/ice1712.c | |||
@@ -2748,7 +2748,7 @@ static struct pci_driver driver = { | |||
2748 | 2748 | ||
2749 | static int __init alsa_card_ice1712_init(void) | 2749 | static int __init alsa_card_ice1712_init(void) |
2750 | { | 2750 | { |
2751 | return pci_module_init(&driver); | 2751 | return pci_register_driver(&driver); |
2752 | } | 2752 | } |
2753 | 2753 | ||
2754 | static void __exit alsa_card_ice1712_exit(void) | 2754 | static void __exit alsa_card_ice1712_exit(void) |
diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c index 95500f06f0c6..79b5f12e06fc 100644 --- a/sound/pci/ice1712/ice1724.c +++ b/sound/pci/ice1712/ice1724.c | |||
@@ -2328,7 +2328,7 @@ static struct pci_driver driver = { | |||
2328 | 2328 | ||
2329 | static int __init alsa_card_ice1724_init(void) | 2329 | static int __init alsa_card_ice1724_init(void) |
2330 | { | 2330 | { |
2331 | return pci_module_init(&driver); | 2331 | return pci_register_driver(&driver); |
2332 | } | 2332 | } |
2333 | 2333 | ||
2334 | static void __exit alsa_card_ice1724_exit(void) | 2334 | static void __exit alsa_card_ice1724_exit(void) |
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index 8b33b12fa5dc..9c5710daed50 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c | |||
@@ -2849,7 +2849,7 @@ static struct pci_driver driver = { | |||
2849 | 2849 | ||
2850 | static int __init alsa_card_intel8x0_init(void) | 2850 | static int __init alsa_card_intel8x0_init(void) |
2851 | { | 2851 | { |
2852 | return pci_module_init(&driver); | 2852 | return pci_register_driver(&driver); |
2853 | } | 2853 | } |
2854 | 2854 | ||
2855 | static void __exit alsa_card_intel8x0_exit(void) | 2855 | static void __exit alsa_card_intel8x0_exit(void) |
diff --git a/sound/pci/intel8x0m.c b/sound/pci/intel8x0m.c index f9972b20050d..f655cf914060 100644 --- a/sound/pci/intel8x0m.c +++ b/sound/pci/intel8x0m.c | |||
@@ -1452,7 +1452,7 @@ static struct pci_driver driver = { | |||
1452 | 1452 | ||
1453 | static int __init alsa_card_intel8x0m_init(void) | 1453 | static int __init alsa_card_intel8x0m_init(void) |
1454 | { | 1454 | { |
1455 | return pci_module_init(&driver); | 1455 | return pci_register_driver(&driver); |
1456 | } | 1456 | } |
1457 | 1457 | ||
1458 | static void __exit alsa_card_intel8x0m_exit(void) | 1458 | static void __exit alsa_card_intel8x0m_exit(void) |
diff --git a/sound/pci/korg1212/korg1212.c b/sound/pci/korg1212/korg1212.c index bb1de2008176..79d8eda54f0d 100644 --- a/sound/pci/korg1212/korg1212.c +++ b/sound/pci/korg1212/korg1212.c | |||
@@ -2541,7 +2541,7 @@ static struct pci_driver driver = { | |||
2541 | 2541 | ||
2542 | static int __init alsa_card_korg1212_init(void) | 2542 | static int __init alsa_card_korg1212_init(void) |
2543 | { | 2543 | { |
2544 | return pci_module_init(&driver); | 2544 | return pci_register_driver(&driver); |
2545 | } | 2545 | } |
2546 | 2546 | ||
2547 | static void __exit alsa_card_korg1212_exit(void) | 2547 | static void __exit alsa_card_korg1212_exit(void) |
diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index 2cf33083d7cc..9f184ea8a9d3 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c | |||
@@ -2702,7 +2702,7 @@ static struct pci_driver driver = { | |||
2702 | 2702 | ||
2703 | static int __init alsa_card_m3_init(void) | 2703 | static int __init alsa_card_m3_init(void) |
2704 | { | 2704 | { |
2705 | return pci_module_init(&driver); | 2705 | return pci_register_driver(&driver); |
2706 | } | 2706 | } |
2707 | 2707 | ||
2708 | static void __exit alsa_card_m3_exit(void) | 2708 | static void __exit alsa_card_m3_exit(void) |
diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c index 65bb0f47af2c..082c0d0f73d2 100644 --- a/sound/pci/mixart/mixart.c +++ b/sound/pci/mixart/mixart.c | |||
@@ -1431,7 +1431,7 @@ static struct pci_driver driver = { | |||
1431 | 1431 | ||
1432 | static int __init alsa_card_mixart_init(void) | 1432 | static int __init alsa_card_mixart_init(void) |
1433 | { | 1433 | { |
1434 | return pci_module_init(&driver); | 1434 | return pci_register_driver(&driver); |
1435 | } | 1435 | } |
1436 | 1436 | ||
1437 | static void __exit alsa_card_mixart_exit(void) | 1437 | static void __exit alsa_card_mixart_exit(void) |
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c index 356fbeac6f9e..8a52091f8552 100644 --- a/sound/pci/nm256/nm256.c +++ b/sound/pci/nm256/nm256.c | |||
@@ -1645,7 +1645,7 @@ static struct pci_driver driver = { | |||
1645 | 1645 | ||
1646 | static int __init alsa_card_nm256_init(void) | 1646 | static int __init alsa_card_nm256_init(void) |
1647 | { | 1647 | { |
1648 | return pci_module_init(&driver); | 1648 | return pci_register_driver(&driver); |
1649 | } | 1649 | } |
1650 | 1650 | ||
1651 | static void __exit alsa_card_nm256_exit(void) | 1651 | static void __exit alsa_card_nm256_exit(void) |
diff --git a/sound/pci/rme32.c b/sound/pci/rme32.c index b96acd5a57db..b7b554df6705 100644 --- a/sound/pci/rme32.c +++ b/sound/pci/rme32.c | |||
@@ -2031,7 +2031,7 @@ static struct pci_driver driver = { | |||
2031 | 2031 | ||
2032 | static int __init alsa_card_rme32_init(void) | 2032 | static int __init alsa_card_rme32_init(void) |
2033 | { | 2033 | { |
2034 | return pci_module_init(&driver); | 2034 | return pci_register_driver(&driver); |
2035 | } | 2035 | } |
2036 | 2036 | ||
2037 | static void __exit alsa_card_rme32_exit(void) | 2037 | static void __exit alsa_card_rme32_exit(void) |
diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c index 8e2666841d21..10c4f45a913c 100644 --- a/sound/pci/rme96.c +++ b/sound/pci/rme96.c | |||
@@ -2437,7 +2437,7 @@ static struct pci_driver driver = { | |||
2437 | 2437 | ||
2438 | static int __init alsa_card_rme96_init(void) | 2438 | static int __init alsa_card_rme96_init(void) |
2439 | { | 2439 | { |
2440 | return pci_module_init(&driver); | 2440 | return pci_register_driver(&driver); |
2441 | } | 2441 | } |
2442 | 2442 | ||
2443 | static void __exit alsa_card_rme96_exit(void) | 2443 | static void __exit alsa_card_rme96_exit(void) |
diff --git a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c index 12efbf0fab54..44ca7ddb68f6 100644 --- a/sound/pci/rme9652/hdsp.c +++ b/sound/pci/rme9652/hdsp.c | |||
@@ -5194,7 +5194,7 @@ static struct pci_driver driver = { | |||
5194 | 5194 | ||
5195 | static int __init alsa_card_hdsp_init(void) | 5195 | static int __init alsa_card_hdsp_init(void) |
5196 | { | 5196 | { |
5197 | return pci_module_init(&driver); | 5197 | return pci_register_driver(&driver); |
5198 | } | 5198 | } |
5199 | 5199 | ||
5200 | static void __exit alsa_card_hdsp_exit(void) | 5200 | static void __exit alsa_card_hdsp_exit(void) |
diff --git a/sound/pci/rme9652/rme9652.c b/sound/pci/rme9652/rme9652.c index 69cd81eaa111..5861f234af21 100644 --- a/sound/pci/rme9652/rme9652.c +++ b/sound/pci/rme9652/rme9652.c | |||
@@ -2664,7 +2664,7 @@ static struct pci_driver driver = { | |||
2664 | 2664 | ||
2665 | static int __init alsa_card_hammerfall_init(void) | 2665 | static int __init alsa_card_hammerfall_init(void) |
2666 | { | 2666 | { |
2667 | return pci_module_init(&driver); | 2667 | return pci_register_driver(&driver); |
2668 | } | 2668 | } |
2669 | 2669 | ||
2670 | static void __exit alsa_card_hammerfall_exit(void) | 2670 | static void __exit alsa_card_hammerfall_exit(void) |
diff --git a/sound/pci/sonicvibes.c b/sound/pci/sonicvibes.c index cfd2c5fd6ddf..60ecb2bdb65e 100644 --- a/sound/pci/sonicvibes.c +++ b/sound/pci/sonicvibes.c | |||
@@ -1522,7 +1522,7 @@ static struct pci_driver driver = { | |||
1522 | 1522 | ||
1523 | static int __init alsa_card_sonicvibes_init(void) | 1523 | static int __init alsa_card_sonicvibes_init(void) |
1524 | { | 1524 | { |
1525 | return pci_module_init(&driver); | 1525 | return pci_register_driver(&driver); |
1526 | } | 1526 | } |
1527 | 1527 | ||
1528 | static void __exit alsa_card_sonicvibes_exit(void) | 1528 | static void __exit alsa_card_sonicvibes_exit(void) |
diff --git a/sound/pci/trident/trident.c b/sound/pci/trident/trident.c index ad58e08d66e2..5d21cb811c8a 100644 --- a/sound/pci/trident/trident.c +++ b/sound/pci/trident/trident.c | |||
@@ -184,7 +184,7 @@ static struct pci_driver driver = { | |||
184 | 184 | ||
185 | static int __init alsa_card_trident_init(void) | 185 | static int __init alsa_card_trident_init(void) |
186 | { | 186 | { |
187 | return pci_module_init(&driver); | 187 | return pci_register_driver(&driver); |
188 | } | 188 | } |
189 | 189 | ||
190 | static void __exit alsa_card_trident_exit(void) | 190 | static void __exit alsa_card_trident_exit(void) |
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index e6e746fa4bb5..64cc40f97b53 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -2349,7 +2349,7 @@ static struct pci_driver driver = { | |||
2349 | 2349 | ||
2350 | static int __init alsa_card_via82xx_init(void) | 2350 | static int __init alsa_card_via82xx_init(void) |
2351 | { | 2351 | { |
2352 | return pci_module_init(&driver); | 2352 | return pci_register_driver(&driver); |
2353 | } | 2353 | } |
2354 | 2354 | ||
2355 | static void __exit alsa_card_via82xx_exit(void) | 2355 | static void __exit alsa_card_via82xx_exit(void) |
diff --git a/sound/pci/via82xx_modem.c b/sound/pci/via82xx_modem.c index ea5c6f640159..098870aea264 100644 --- a/sound/pci/via82xx_modem.c +++ b/sound/pci/via82xx_modem.c | |||
@@ -1233,7 +1233,7 @@ static struct pci_driver driver = { | |||
1233 | 1233 | ||
1234 | static int __init alsa_card_via82xx_init(void) | 1234 | static int __init alsa_card_via82xx_init(void) |
1235 | { | 1235 | { |
1236 | return pci_module_init(&driver); | 1236 | return pci_register_driver(&driver); |
1237 | } | 1237 | } |
1238 | 1238 | ||
1239 | static void __exit alsa_card_via82xx_exit(void) | 1239 | static void __exit alsa_card_via82xx_exit(void) |
diff --git a/sound/pci/vx222/vx222.c b/sound/pci/vx222/vx222.c index 4ffbb25658a5..dca6bd2c7580 100644 --- a/sound/pci/vx222/vx222.c +++ b/sound/pci/vx222/vx222.c | |||
@@ -260,7 +260,7 @@ static struct pci_driver driver = { | |||
260 | 260 | ||
261 | static int __init alsa_card_vx222_init(void) | 261 | static int __init alsa_card_vx222_init(void) |
262 | { | 262 | { |
263 | return pci_module_init(&driver); | 263 | return pci_register_driver(&driver); |
264 | } | 264 | } |
265 | 265 | ||
266 | static void __exit alsa_card_vx222_exit(void) | 266 | static void __exit alsa_card_vx222_exit(void) |
diff --git a/sound/pci/ymfpci/ymfpci.c b/sound/pci/ymfpci/ymfpci.c index 9f3ef22df08d..5b5b624b47d0 100644 --- a/sound/pci/ymfpci/ymfpci.c +++ b/sound/pci/ymfpci/ymfpci.c | |||
@@ -360,7 +360,7 @@ static struct pci_driver driver = { | |||
360 | 360 | ||
361 | static int __init alsa_card_ymfpci_init(void) | 361 | static int __init alsa_card_ymfpci_init(void) |
362 | { | 362 | { |
363 | return pci_module_init(&driver); | 363 | return pci_register_driver(&driver); |
364 | } | 364 | } |
365 | 365 | ||
366 | static void __exit alsa_card_ymfpci_exit(void) | 366 | static void __exit alsa_card_ymfpci_exit(void) |