Skip to content

Commit

Permalink
edac: edac_mc no longer deals with kobjects directly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shaun Ruffell authored and Mauro Carvalho Chehab committed Dec 21, 2012
1 parent 9ada9fd commit 80f5ab0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
7 changes: 0 additions & 7 deletions drivers/edac/edac_mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,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:
Expand Down
1 change: 0 additions & 1 deletion include/linux/edac.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 80f5ab0

Please sign in to comment.