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
nexedi
linux
Commits
18621e87
Commit
18621e87
authored
Jun 03, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI: remove usage of pci_for_each_dev() in drivers/char/agp/generic.c
parent
153aa0a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/char/agp/generic.c
drivers/char/agp/generic.c
+4
-4
No files found.
drivers/char/agp/generic.c
View file @
18621e87
...
...
@@ -462,12 +462,12 @@ static void agp_v3_parse_one(u32 *mode, u32 *cmd, u32 *tmp)
//We need a function we pass an agp_device to.
u32
agp_collect_device_status
(
u32
mode
,
u32
cmd
)
{
struct
pci_dev
*
device
;
struct
pci_dev
*
device
=
NULL
;
u8
cap_ptr
;
u32
tmp
;
u32
agp3
;
pci_for_each_dev
(
device
)
{
while
((
device
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
device
))
!=
NULL
)
{
cap_ptr
=
pci_find_capability
(
device
,
PCI_CAP_ID_AGP
);
if
(
!
cap_ptr
)
continue
;
...
...
@@ -502,14 +502,14 @@ EXPORT_SYMBOL(agp_collect_device_status);
void
agp_device_command
(
u32
command
,
int
agp_v3
)
{
struct
pci_dev
*
device
;
struct
pci_dev
*
device
=
NULL
;
int
mode
;
mode
=
command
&
0x7
;
if
(
agp_v3
)
mode
*=
4
;
pci_for_each_dev
(
device
)
{
while
((
device
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
device
))
!=
NULL
)
{
u8
agp
=
pci_find_capability
(
device
,
PCI_CAP_ID_AGP
);
if
(
!
agp
)
continue
;
...
...
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