]> www.infradead.org Git - users/mchehab/edac.git/commitdiff
edac: edac_mc no longer deals with kobjects directly linux_next
authorShaun Ruffell <sruffell@digium.com>
Sun, 19 Aug 2012 04:11:24 +0000 (01:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 24 Aug 2012 18:37:43 +0000 (15:37 -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 a58facc4cc88d0b0b654dce4a4d9ce40c439b046..65c59b1eff9c49ba2bdc3585a234d708f49ad8b7 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>