]> err.no Git - linux-2.6/commit
V4L/DVB (5573): Pvrusb2: kill unnecessary attribute->owner
authorTejun Heo <htejun@gmail.com>
Sat, 28 Apr 2007 23:04:48 +0000 (20:04 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 9 May 2007 13:12:32 +0000 (10:12 -0300)
commit4f393828d1dae28905447fcc9845ba0b5f414c62
treebf34bcf044d91c1e4f05078df3fe79e3f86c0ec0
parent8df0c87cc33646a19a59c0f93c4f9a330d5ca5eb
V4L/DVB (5573): Pvrusb2: kill unnecessary attribute->owner

sysfs is now completely out of driver/module lifetime game.

After deletion, a sysfs node doesn't access anything outside sysfs
proper, so there's no reason to hold onto the attribute owners.

Note that often the wrong modules were accounted for as owners leading
to accessing removed modules.

This patch kills now unnecessary attribute->owner.

Note that with this change, userland holding a sysfs node does not
prevent the backing module from being unloaded.

For more info regarding lifetime rule cleanup, please read the following
message:
http://article.gmane.org/gmane.linux.kernel/510293

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-sysfs.c