mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
EDAC: Don't add devices under /sys/bus/edac
Nobody(*) uses them. Dropping this will allow us to make the total number of memory controllers configurable (as we won't have to worry about duplicated device names under this directory). (*) https://lkml.kernel.org/r/[email protected] Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Mauro Carvalho Chehab <[email protected]> CC: Aristeu Rozanski Filho <[email protected]> CC: Greg KH <[email protected]> CC: Justin Ernst <[email protected]> CC: Mauro Carvalho Chehab <[email protected]> CC: Russ Anderson <[email protected]> CC: linux-edac <[email protected]> Link: http://lkml.kernel.org/r/20181001224313.GA9487@agluck-desk
This commit is contained in:
parent
1722bc0e8c
commit
88a10b1517
1 changed files with 0 additions and 3 deletions
|
|
@ -405,7 +405,6 @@ static int edac_create_csrow_object(struct mem_ctl_info *mci,
|
|||
struct csrow_info *csrow, int index)
|
||||
{
|
||||
csrow->dev.type = &csrow_attr_type;
|
||||
csrow->dev.bus = mci->bus;
|
||||
csrow->dev.groups = csrow_dev_groups;
|
||||
device_initialize(&csrow->dev);
|
||||
csrow->dev.parent = &mci->dev;
|
||||
|
|
@ -636,7 +635,6 @@ static int edac_create_dimm_object(struct mem_ctl_info *mci,
|
|||
dimm->mci = mci;
|
||||
|
||||
dimm->dev.type = &dimm_attr_type;
|
||||
dimm->dev.bus = mci->bus;
|
||||
device_initialize(&dimm->dev);
|
||||
|
||||
dimm->dev.parent = &mci->dev;
|
||||
|
|
@ -940,7 +938,6 @@ int edac_create_sysfs_mci_device(struct mem_ctl_info *mci,
|
|||
device_initialize(&mci->dev);
|
||||
|
||||
mci->dev.parent = mci_pdev;
|
||||
mci->dev.bus = mci->bus;
|
||||
mci->dev.groups = groups;
|
||||
dev_set_name(&mci->dev, "mc%d", mci->mc_idx);
|
||||
dev_set_drvdata(&mci->dev, mci);
|
||||
|
|
|
|||
Loading…
Reference in a new issue