diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-16 06:44:18 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-11 10:56:06 -0400 |
commit | fd687502dc8037aa5a4b84c570ada971106574ee (patch) | |
tree | 53e7c4141571ff349759614095c12e853492f068 /drivers/edac/sb_edac.c | |
parent | 53f2d02898755d1b24bde1975e202815d29fdb81 (diff) |
edac: Rename the parent dev to pdev
As EDAC doesn't use struct device itself, it created a parent dev
pointer called as "pdev". Now that we'll be converting it to use
struct device, instead of struct devsys, this needs to be fixed.
No functional changes.
Reviewed-by: Aristeu Rozanski <arozansk@redhat.com>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
Cc: Doug Thompson <norsk5@yahoo.com>
Cc: Borislav Petkov <borislav.petkov@amd.com>
Cc: Mark Gross <mark.gross@intel.com>
Cc: Jason Uhlenkott <juhlenko@akamai.com>
Cc: Tim Small <tim@buttersideup.com>
Cc: Ranganathan Desikan <ravi@jetztechnologies.com>
Cc: "Arvind R." <arvino55@gmail.com>
Cc: Olof Johansson <olof@lixom.net>
Cc: Egor Martovetsky <egor@pasemi.com>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Joe Perches <joe@perches.com>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Hitoshi Mitake <h.mitake@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: "Niklas Söderlund" <niklas.soderlund@ericsson.com>
Cc: Shaohui Xie <Shaohui.Xie@freescale.com>
Cc: Josh Boyer <jwboyer@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/sb_edac.c')
-rw-r--r-- | drivers/edac/sb_edac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index e834dfd034d6..efa488357ae6 100644 --- a/drivers/edac/sb_edac.c +++ b/drivers/edac/sb_edac.c | |||
@@ -1607,7 +1607,7 @@ static void sbridge_unregister_mci(struct sbridge_dev *sbridge_dev) | |||
1607 | mce_unregister_decode_chain(&sbridge_mce_dec); | 1607 | mce_unregister_decode_chain(&sbridge_mce_dec); |
1608 | 1608 | ||
1609 | /* Remove MC sysfs nodes */ | 1609 | /* Remove MC sysfs nodes */ |
1610 | edac_mc_del_mc(mci->dev); | 1610 | edac_mc_del_mc(mci->pdev); |
1611 | 1611 | ||
1612 | debugf1("%s: free mci struct\n", mci->ctl_name); | 1612 | debugf1("%s: free mci struct\n", mci->ctl_name); |
1613 | kfree(mci->ctl_name); | 1613 | kfree(mci->ctl_name); |
@@ -1672,7 +1672,7 @@ static int sbridge_register_mci(struct sbridge_dev *sbridge_dev) | |||
1672 | get_memory_layout(mci); | 1672 | get_memory_layout(mci); |
1673 | 1673 | ||
1674 | /* record ptr to the generic device */ | 1674 | /* record ptr to the generic device */ |
1675 | mci->dev = &sbridge_dev->pdev[0]->dev; | 1675 | mci->pdev = &sbridge_dev->pdev[0]->dev; |
1676 | 1676 | ||
1677 | /* add this new MC control structure to EDAC's list of MCs */ | 1677 | /* add this new MC control structure to EDAC's list of MCs */ |
1678 | if (unlikely(edac_mc_add_mc(mci))) { | 1678 | if (unlikely(edac_mc_add_mc(mci))) { |