From: Alasdair G Kergon <[email-masked]>

Revert commit d2bb7df8cac647b92f51fb84ae735771e7adbfa7 at Greg's request.

    Author: Milan Broz <[email-masked]>
    Date:   Thu Dec 10 23:51:53 2009 +0000

    dm: sysfs add empty release function to avoid debug warning
    
    This patch just removes an unnecessary warning:
     kobject: 'dm': does not have a release() function,
     it is broken and must be fixed.
    
    The kobject is embedded in mapped device struct, so
    code does not need to release memory explicitly here.
    
Cc: Greg KH <[email-masked]>
Signed-off-by: Alasdair G Kergon <[email-masked]>

---
 drivers/md/dm-sysfs.c |    8 --------
 1 file changed, 8 deletions(-)

Index: linux-2.6.33-rc8/drivers/md/dm-sysfs.c
===================================================================
--- linux-2.6.33-rc8.orig/drivers/md/dm-sysfs.c
+++ linux-2.6.33-rc8/drivers/md/dm-sysfs.c
@@ -80,20 +80,12 @@ static struct sysfs_ops dm_sysfs_ops = {
 };
 
 /*
- * The sysfs structure is embedded in md struct, nothing to do here
- */
-static void dm_sysfs_release(struct kobject *kobj)
-{
-}
-
-/*
  * dm kobject is embedded in mapped_device structure
  * no need to define release function here
  */
 static struct kobj_type dm_ktype = {
 	.sysfs_ops	= &dm_sysfs_ops,
 	.default_attrs	= dm_attrs,
-	.release	= dm_sysfs_release
 };
 
 /*