Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
39300e71
Commit
39300e71
authored
Aug 11, 2010
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i7core_edac: explicitly remove PCI devices from the devices list
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
41ba6c10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
drivers/edac/i7core_edac.c
drivers/edac/i7core_edac.c
+6
-4
No files found.
drivers/edac/i7core_edac.c
View file @
39300e71
...
...
@@ -1240,16 +1240,17 @@ static void i7core_put_devices(struct i7core_dev *i7core_dev)
pci_dev_put
(
pdev
);
}
kfree
(
i7core_dev
->
pdev
);
list_del
(
&
i7core_dev
->
list
);
kfree
(
i7core_dev
);
}
static
void
i7core_put_all_devices
(
void
)
{
struct
i7core_dev
*
i7core_dev
,
*
tmp
;
list_for_each_entry_safe
(
i7core_dev
,
tmp
,
&
i7core_edac_list
,
list
)
list_for_each_entry_safe
(
i7core_dev
,
tmp
,
&
i7core_edac_list
,
list
)
{
i7core_put_devices
(
i7core_dev
);
list_del
(
&
i7core_dev
->
list
);
kfree
(
i7core_dev
);
}
}
static
void
__init
i7core_xeon_pci_fixup
(
const
struct
pci_id_table
*
table
)
...
...
@@ -1438,7 +1439,6 @@ static int i7core_get_devices(const struct pci_id_table *table)
}
return
0
;
return
0
;
}
static
int
mci_bind_devs
(
struct
mem_ctl_info
*
mci
,
...
...
@@ -2092,6 +2092,8 @@ static void __devexit i7core_remove(struct pci_dev *pdev)
/* Release PCI resources */
i7core_put_devices
(
i7core_dev
);
}
list_del
(
&
i7core_dev
->
list
);
kfree
(
i7core_dev
);
}
probed
--
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment