Skip to contentSkip to conversation

: __devinit and __devexit changes to various sound drivers

PATCH Takashi Iwai 2 participants 2 messages Feb 9, 2007 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

At Thu, 8 Feb 2007 12:09:48 -0500,

Quoted 14 lines · Prarit Bhargava

__devinit and __devexit fixups to resolve MODPOST warnings:

WARNING: sound/drivers/snd-dummy.o - Section mismatch: reference to .init.text:snd_dummy_probe from .data.rel.local between 'snd_dummy_driver' (at offset 0x0) and 'snd_dummy_controls'
WARNING: sound/drivers/snd-mtpav.o - Section mismatch: reference to .init.text:snd_mtpav_probe from .data.rel.local between 'snd_mtpav_driver' (at offset 0x0) and 'snd_mtpav_input'
WARNING: sound/drivers/snd-virmidi.o - Section mismatch: reference to .init.text:snd_virmidi_probe from .data.rel.local after 'snd_virmidi_driver' (at offset 0x0)

(snip)

Quoted 13 lines
sound/drivers/dummy.c +1 -1
@@ -579,7 +579,7 @@ static int __init snd_card_dummy_new_mix
 	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;

sound/drivers/dummy.c static int snd_dummy_suspend(struct plat · line 638

Quoted 5 lines
sound/drivers/dummy.c +1 -1
@@ -635,7 +635,7 @@ static int snd_dummy_suspend(struct plat
 	return 0;
 }
 
-static int snd_dummy_resume(struct platform_device *pdev)
+static int __devexit snd_dummy_resume(struct platform_device *pdev)

You're shooting the wrong function :)

Also, if we change this (obviously correct), we should change all __init* to __devinit* accordingly. Care to fix these?

Thanks,

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#2 lore raw
Quoted 10 lines

Review

Quoted 5 lines
(quoted diff) +1 -1
-static int snd_dummy_resume(struct platform_device *pdev)
+static int __devexit snd_dummy_resume(struct platform_device *pdev)

You're shooting the wrong function :)

Whoops. :) My bad.

Quoted 5 lines

Also, if we change this (obviously correct), we should change all __init* to __devinit* accordingly. Care to fix these?

No problem -- I'll take care of that and send another patch.

(To be honest, I haven't compiled _everything_ in the directory. I've been lazily working of the fedora .config ;) )

Be back in a few days ...

P.

Quoted 4 lines

Thanks,

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642