From: Hans de Goede Date: Sat, 19 May 2012 10:57:03 +0000 (-0300) Subject: [media] snd_tea575x: Make the module using snd_tea575x the fops owner X-Git-Tag: v3.5-rc5~26^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5daf53a6eb5c54c618c9def388d81c2769fd11a0;p=pandora-kernel.git [media] snd_tea575x: Make the module using snd_tea575x the fops owner Before this patch the owner field of the /dev/radio# device fops was set to the snd-tea575x-tuner module itself. Meaning that the module which was using it could be rmmod-ed while the device is open, and then BAD things happen. I know, as I found out the hard way :) Note that there is no need to also somehow increase the refcount of the snd-tea575x-tuner module itself, since any drivers using it will have symbolic references to it. Signed-off-by: Hans de Goede CC: Ondrej Zary Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed