]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
edac: edac_mc no longer deals with kobjects directly
authorShaun Ruffell <sruffell@digium.com>
Sun, 19 Aug 2012 04:11:24 +0000 (01:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 25 Sep 2012 10:39:02 +0000 (07:39 -0300)
There are no more embedded kobjects in struct mem_ctl_info. Remove a header and
a comment that does not reflect the code anymore.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/edac_mc.c
include/linux/edac.h

index d5dc9da7f99f95fc9dd3a6edb5d4bc302e69c2c3..02f0d3e94af509eb7e2a8b55ae9a70da1056b8d7 100644 (file)
@@ -433,13 +433,6 @@ struct mem_ctl_info *edac_mc_alloc(unsigned mc_num,
 
        mci->op_state = OP_ALLOC;
 
-       /* at this point, the root kobj is valid, and in order to
-        * 'free' the object, then the function:
-        *      edac_mc_unregister_sysfs_main_kobj() must be called
-        * which will perform kobj unregistration and the actual free
-        * will occur during the kobject callback operation
-        */
-
        return mci;
 
 error:
index bab9f8473dc1c7673c7e900e73691d38ee35e737..aeddb3f69a6695f18a6c462f54ffea7956612098 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <linux/atomic.h>
 #include <linux/device.h>
-#include <linux/kobject.h>
 #include <linux/completion.h>
 #include <linux/workqueue.h>
 #include <linux/debugfs.h>