Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48497
b: refs/heads/master
c: 788c604
h: refs/heads/master
i:
  48495: f02dc42
v: v3
  • Loading branch information
Prarit Bhargava authored and Jaroslav Kysela committed Feb 14, 2007
1 parent d3af50c commit d7924d8
Show file tree
Hide file tree
Showing 16 changed files with 61 additions and 59 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 46f02ca36e9b2b690ebcef18fa0652c586d6c08e
refs/heads/master: 788c6043335590e0a483fdc18f85b1405a157bf9
6 changes: 3 additions & 3 deletions trunk/sound/arm/pxa2xx-ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static int pxa2xx_ac97_resume(struct platform_device *dev)
#define pxa2xx_ac97_resume NULL
#endif

static int pxa2xx_ac97_probe(struct platform_device *dev)
static int __devinit pxa2xx_ac97_probe(struct platform_device *dev)
{
struct snd_card *card;
struct snd_ac97_bus *ac97_bus;
Expand Down Expand Up @@ -369,7 +369,7 @@ static int pxa2xx_ac97_probe(struct platform_device *dev)
return ret;
}

static int pxa2xx_ac97_remove(struct platform_device *dev)
static int __devexit pxa2xx_ac97_remove(struct platform_device *dev)
{
struct snd_card *card = platform_get_drvdata(dev);

Expand All @@ -386,7 +386,7 @@ static int pxa2xx_ac97_remove(struct platform_device *dev)

static struct platform_driver pxa2xx_ac97_driver = {
.probe = pxa2xx_ac97_probe,
.remove = pxa2xx_ac97_remove,
.remove = __devexit_p(pxa2xx_ac97_remove),
.suspend = pxa2xx_ac97_suspend,
.resume = pxa2xx_ac97_resume,
.driver = {
Expand Down
11 changes: 6 additions & 5 deletions trunk/sound/drivers/dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,8 @@ static struct snd_pcm_ops snd_card_dummy_capture_ops = {
.pointer = snd_card_dummy_pcm_pointer,
};

static int __init snd_card_dummy_pcm(struct snd_dummy *dummy, int device, int substreams)
static int __devinit snd_card_dummy_pcm(struct snd_dummy *dummy, int device,
int substreams)
{
struct snd_pcm *pcm;
int err;
Expand Down Expand Up @@ -562,7 +563,7 @@ DUMMY_VOLUME("CD Volume", 0, MIXER_ADDR_CD),
DUMMY_CAPSRC("CD Capture Switch", 0, MIXER_ADDR_CD)
};

static int __init snd_card_dummy_new_mixer(struct snd_dummy *dummy)
static int __devinit snd_card_dummy_new_mixer(struct snd_dummy *dummy)
{
struct snd_card *card = dummy->card;
unsigned int idx;
Expand All @@ -579,7 +580,7 @@ static int __init snd_card_dummy_new_mixer(struct snd_dummy *dummy)
return 0;
}

static int __init snd_dummy_probe(struct platform_device *devptr)
static int __devinit snd_dummy_probe(struct platform_device *devptr)
{
struct snd_card *card;
struct snd_dummy *dummy;
Expand Down Expand Up @@ -617,7 +618,7 @@ static int __init snd_dummy_probe(struct platform_device *devptr)
return err;
}

static int snd_dummy_remove(struct platform_device *devptr)
static int __devexit snd_dummy_remove(struct platform_device *devptr)
{
snd_card_free(platform_get_drvdata(devptr));
platform_set_drvdata(devptr, NULL);
Expand Down Expand Up @@ -648,7 +649,7 @@ static int snd_dummy_resume(struct platform_device *pdev)

static struct platform_driver snd_dummy_driver = {
.probe = snd_dummy_probe,
.remove = snd_dummy_remove,
.remove = __devexit_p(snd_dummy_remove),
#ifdef CONFIG_PM
.suspend = snd_dummy_suspend,
.resume = snd_dummy_resume,
Expand Down
12 changes: 6 additions & 6 deletions trunk/sound/drivers/mtpav.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ static irqreturn_t snd_mtpav_irqh(int irq, void *dev_id)
/*
* get ISA resources
*/
static int __init snd_mtpav_get_ISA(struct mtpav * mcard)
static int __devinit snd_mtpav_get_ISA(struct mtpav * mcard)
{
if ((mcard->res_port = request_region(port, 3, "MotuMTPAV MIDI")) == NULL) {
snd_printk("MTVAP port 0x%lx is busy\n", port);
Expand Down Expand Up @@ -619,7 +619,7 @@ static struct snd_rawmidi_ops snd_mtpav_input = {
* get RAWMIDI resources
*/

static void __init snd_mtpav_set_name(struct mtpav *chip,
static void __devinit snd_mtpav_set_name(struct mtpav *chip,
struct snd_rawmidi_substream *substream)
{
if (substream->number >= 0 && substream->number < chip->num_ports)
Expand All @@ -634,7 +634,7 @@ static void __init snd_mtpav_set_name(struct mtpav *chip,
strcpy(substream->name, "MTP broadcast");
}

static int __init snd_mtpav_get_RAWMIDI(struct mtpav *mcard)
static int __devinit snd_mtpav_get_RAWMIDI(struct mtpav *mcard)
{
int rval;
struct snd_rawmidi *rawmidi;
Expand Down Expand Up @@ -691,7 +691,7 @@ static void snd_mtpav_free(struct snd_card *card)

/*
*/
static int __init snd_mtpav_probe(struct platform_device *dev)
static int __devinit snd_mtpav_probe(struct platform_device *dev)
{
struct snd_card *card;
int err;
Expand Down Expand Up @@ -745,7 +745,7 @@ static int __init snd_mtpav_probe(struct platform_device *dev)
return err;
}

static int snd_mtpav_remove(struct platform_device *devptr)
static int __devexit snd_mtpav_remove(struct platform_device *devptr)
{
snd_card_free(platform_get_drvdata(devptr));
platform_set_drvdata(devptr, NULL);
Expand All @@ -756,7 +756,7 @@ static int snd_mtpav_remove(struct platform_device *devptr)

static struct platform_driver snd_mtpav_driver = {
.probe = snd_mtpav_probe,
.remove = snd_mtpav_remove,
.remove = __devexit_p(snd_mtpav_remove),
.driver = {
.name = SND_MTPAV_DRIVER
},
Expand Down
6 changes: 3 additions & 3 deletions trunk/sound/drivers/mts64.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ static int __devinit snd_mts64_probe(struct platform_device *pdev)
return err;
}

static int snd_mts64_remove(struct platform_device *pdev)
static int __devexit snd_mts64_remove(struct platform_device *pdev)
{
struct snd_card *card = platform_get_drvdata(pdev);

Expand All @@ -1039,7 +1039,7 @@ static int snd_mts64_remove(struct platform_device *pdev)

static struct platform_driver snd_mts64_driver = {
.probe = snd_mts64_probe,
.remove = snd_mts64_remove,
.remove = __devexit_p(snd_mts64_remove),
.driver = {
.name = PLATFORM_DRIVER
}
Expand All @@ -1048,7 +1048,7 @@ static struct platform_driver snd_mts64_driver = {
/*********************************************************************
* module init stuff
*********************************************************************/
static void snd_mts64_unregister_all(void)
static void __init_or_module snd_mts64_unregister_all(void)
{
int i;

Expand Down
6 changes: 3 additions & 3 deletions trunk/sound/drivers/portman2x4.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ static int __devinit snd_portman_probe(struct platform_device *pdev)
return err;
}

static int snd_portman_remove(struct platform_device *pdev)
static int __devexit snd_portman_remove(struct platform_device *pdev)
{
struct snd_card *card = platform_get_drvdata(pdev);

Expand All @@ -824,7 +824,7 @@ static int snd_portman_remove(struct platform_device *pdev)

static struct platform_driver snd_portman_driver = {
.probe = snd_portman_probe,
.remove = snd_portman_remove,
.remove = __dev_exit_p(snd_portman_remove),
.driver = {
.name = PLATFORM_DRIVER
}
Expand All @@ -833,7 +833,7 @@ static struct platform_driver snd_portman_driver = {
/*********************************************************************
* module init stuff
*********************************************************************/
static void snd_portman_unregister_all(void)
static void __init_or_module snd_portman_unregister_all(void)
{
int i;

Expand Down
14 changes: 7 additions & 7 deletions trunk/sound/drivers/serial-u16550.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ static void snd_uart16550_buffer_timer(unsigned long data)
* return 0 if found
* return negative error if not found
*/
static int __init snd_uart16550_detect(struct snd_uart16550 *uart)
static int __devinit snd_uart16550_detect(struct snd_uart16550 *uart)
{
unsigned long io_base = uart->base;
int ok;
Expand Down Expand Up @@ -781,7 +781,7 @@ static int snd_uart16550_dev_free(struct snd_device *device)
return snd_uart16550_free(uart);
}

static int __init snd_uart16550_create(struct snd_card *card,
static int __devinit snd_uart16550_create(struct snd_card *card,
unsigned long iobase,
int irq,
unsigned int speed,
Expand Down Expand Up @@ -860,7 +860,7 @@ static int __init snd_uart16550_create(struct snd_card *card,
return 0;
}

static void __init snd_uart16550_substreams(struct snd_rawmidi_str *stream)
static void __devinit snd_uart16550_substreams(struct snd_rawmidi_str *stream)
{
struct snd_rawmidi_substream *substream;

Expand All @@ -869,7 +869,7 @@ static void __init snd_uart16550_substreams(struct snd_rawmidi_str *stream)
}
}

static int __init snd_uart16550_rmidi(struct snd_uart16550 *uart, int device,
static int __devinit snd_uart16550_rmidi(struct snd_uart16550 *uart, int device,
int outs, int ins,
struct snd_rawmidi **rmidi)
{
Expand All @@ -896,7 +896,7 @@ static int __init snd_uart16550_rmidi(struct snd_uart16550 *uart, int device,
return 0;
}

static int __init snd_serial_probe(struct platform_device *devptr)
static int __devinit snd_serial_probe(struct platform_device *devptr)
{
struct snd_card *card;
struct snd_uart16550 *uart;
Expand Down Expand Up @@ -981,7 +981,7 @@ static int __init snd_serial_probe(struct platform_device *devptr)
return err;
}

static int snd_serial_remove(struct platform_device *devptr)
static int __devexit snd_serial_remove(struct platform_device *devptr)
{
snd_card_free(platform_get_drvdata(devptr));
platform_set_drvdata(devptr, NULL);
Expand All @@ -992,7 +992,7 @@ static int snd_serial_remove(struct platform_device *devptr)

static struct platform_driver snd_serial_driver = {
.probe = snd_serial_probe,
.remove = snd_serial_remove,
.remove = __devexit_p( snd_serial_remove),
.driver = {
.name = SND_SERIAL_DRIVER
},
Expand Down
6 changes: 3 additions & 3 deletions trunk/sound/drivers/virmidi.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ struct snd_card_virmidi {
static struct platform_device *devices[SNDRV_CARDS];


static int __init snd_virmidi_probe(struct platform_device *devptr)
static int __devinit snd_virmidi_probe(struct platform_device *devptr)
{
struct snd_card *card;
struct snd_card_virmidi *vmidi;
Expand Down Expand Up @@ -129,7 +129,7 @@ static int __init snd_virmidi_probe(struct platform_device *devptr)
return err;
}

static int snd_virmidi_remove(struct platform_device *devptr)
static int __devexit snd_virmidi_remove(struct platform_device *devptr)
{
snd_card_free(platform_get_drvdata(devptr));
platform_set_drvdata(devptr, NULL);
Expand All @@ -140,7 +140,7 @@ static int snd_virmidi_remove(struct platform_device *devptr)

static struct platform_driver snd_virmidi_driver = {
.probe = snd_virmidi_probe,
.remove = snd_virmidi_remove,
.remove = __devexit_p(snd_virmidi_remove),
.driver = {
.name = SND_VIRMIDI_DRIVER
},
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/isa/ad1848/ad1848.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ MODULE_PARM_DESC(thinkpad, "Enable only for the onboard CS4248 of IBM Thinkpad 3
static struct platform_device *devices[SNDRV_CARDS];


static int __init snd_ad1848_probe(struct platform_device *pdev)
static int __devinit snd_ad1848_probe(struct platform_device *pdev)
{
int dev = pdev->id;
struct snd_card *card;
Expand Down
4 changes: 2 additions & 2 deletions trunk/sound/isa/cmi8330.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ static int __devinit snd_cmi8330_nonpnp_probe(struct platform_device *pdev)
return 0;
}

static int snd_cmi8330_nonpnp_remove(struct platform_device *devptr)
static int __devexit snd_cmi8330_nonpnp_remove(struct platform_device *devptr)
{
snd_card_free(platform_get_drvdata(devptr));
platform_set_drvdata(devptr, NULL);
Expand All @@ -597,7 +597,7 @@ static int snd_cmi8330_nonpnp_resume(struct platform_device *dev)

static struct platform_driver snd_cmi8330_driver = {
.probe = snd_cmi8330_nonpnp_probe,
.remove = snd_cmi8330_nonpnp_remove,
.remove = __devexit_p(snd_cmi8330_nonpnp_remove),
#ifdef CONFIG_PM
.suspend = snd_cmi8330_nonpnp_suspend,
.resume = snd_cmi8330_nonpnp_resume,
Expand Down
6 changes: 3 additions & 3 deletions trunk/sound/isa/es1688/es1688.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static struct platform_device *devices[SNDRV_CARDS];

#define PFX "es1688: "

static int __init snd_es1688_probe(struct platform_device *pdev)
static int __devinit snd_es1688_probe(struct platform_device *pdev)
{
int dev = pdev->id;
static int possible_irqs[] = {5, 9, 10, 7, -1};
Expand Down Expand Up @@ -171,7 +171,7 @@ static int __init snd_es1688_probe(struct platform_device *pdev)
return err;
}

static int snd_es1688_remove(struct platform_device *devptr)
static int __devexit snd_es1688_remove(struct platform_device *devptr)
{
snd_card_free(platform_get_drvdata(devptr));
platform_set_drvdata(devptr, NULL);
Expand All @@ -182,7 +182,7 @@ static int snd_es1688_remove(struct platform_device *devptr)

static struct platform_driver snd_es1688_driver = {
.probe = snd_es1688_probe,
.remove = snd_es1688_remove,
.remove = __devexit_p(snd_es1688_remove),
/* FIXME: suspend/resume */
.driver = {
.name = ES1688_DRIVER
Expand Down
10 changes: 5 additions & 5 deletions trunk/sound/isa/gus/gusclassic.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static struct platform_device *devices[SNDRV_CARDS];

#define PFX "gusclassic: "

static int __init snd_gusclassic_detect(struct snd_gus_card * gus)
static int __devinit snd_gusclassic_detect(struct snd_gus_card * gus)
{
unsigned char d;

Expand All @@ -95,15 +95,15 @@ static int __init snd_gusclassic_detect(struct snd_gus_card * gus)
return 0;
}

static void __init snd_gusclassic_init(int dev, struct snd_gus_card * gus)
static void __devinit snd_gusclassic_init(int dev, struct snd_gus_card * gus)
{
gus->equal_irq = 0;
gus->codec_flag = 0;
gus->max_flag = 0;
gus->joystick_dac = joystick_dac[dev];
}

static int __init snd_gusclassic_probe(struct platform_device *pdev)
static int __devinit snd_gusclassic_probe(struct platform_device *pdev)
{
int dev = pdev->id;
static int possible_irqs[] = {5, 11, 12, 9, 7, 15, 3, 4, -1};
Expand Down Expand Up @@ -211,7 +211,7 @@ static int __init snd_gusclassic_probe(struct platform_device *pdev)
return err;
}

static int snd_gusclassic_remove(struct platform_device *devptr)
static int __devexit snd_gusclassic_remove(struct platform_device *devptr)
{
snd_card_free(platform_get_drvdata(devptr));
platform_set_drvdata(devptr, NULL);
Expand All @@ -222,7 +222,7 @@ static int snd_gusclassic_remove(struct platform_device *devptr)

static struct platform_driver snd_gusclassic_driver = {
.probe = snd_gusclassic_probe,
.remove = snd_gusclassic_remove,
.remove = __devexit_p(snd_gusclassic_remove),
/* FIXME: suspend/resume */
.driver = {
.name = GUSCLASSIC_DRIVER
Expand Down
Loading

0 comments on commit d7924d8

Please sign in to comment.