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
4e213c9a
Commit
4e213c9a
authored
Jun 04, 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 arch/ia64/sn/io/pciba.c
parent
a73116a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arch/ia64/sn/io/pciba.c
arch/ia64/sn/io/pciba.c
+4
-4
No files found.
arch/ia64/sn/io/pciba.c
View file @
4e213c9a
...
@@ -286,7 +286,7 @@ free_nodes(void)
...
@@ -286,7 +286,7 @@ free_nodes(void)
static
status
__init
static
status
__init
register_with_devfs
(
void
)
register_with_devfs
(
void
)
{
{
struct
pci_dev
*
dev
;
struct
pci_dev
*
dev
=
NULL
;
devfs_handle_t
device_dir_handle
;
devfs_handle_t
device_dir_handle
;
char
devfs_path
[
40
];
char
devfs_path
[
40
];
...
@@ -297,7 +297,7 @@ register_with_devfs(void)
...
@@ -297,7 +297,7 @@ register_with_devfs(void)
/* FIXME: don't forget /dev/pci/mem & /dev/pci/io */
/* FIXME: don't forget /dev/pci/mem & /dev/pci/io */
pci_for_each_dev
(
dev
)
{
while
((
dev
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
dev
))
!=
NULL
)
{
sprintf
(
devfs_path
,
"pci/%02x/%02x.%x"
,
sprintf
(
devfs_path
,
"pci/%02x/%02x.%x"
,
dev
->
bus
->
number
,
dev
->
bus
->
number
,
PCI_SLOT
(
dev
->
devfn
),
PCI_SLOT
(
dev
->
devfn
),
...
@@ -325,14 +325,14 @@ devfn_to_vertex(unsigned char busnum, unsigned int devfn);
...
@@ -325,14 +325,14 @@ devfn_to_vertex(unsigned char busnum, unsigned int devfn);
static
status
__init
static
status
__init
register_with_devfs
(
void
)
register_with_devfs
(
void
)
{
{
struct
pci_dev
*
dev
;
struct
pci_dev
*
dev
=
NULL
;
devfs_handle_t
device_dir_handle
;
devfs_handle_t
device_dir_handle
;
TRACE
();
TRACE
();
/* FIXME: don't forget /dev/.../pci/mem & /dev/.../pci/io */
/* FIXME: don't forget /dev/.../pci/mem & /dev/.../pci/io */
pci_for_each_dev
(
dev
)
{
while
((
dev
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
dev
))
!=
NULL
)
{
device_dir_handle
=
devfn_to_vertex
(
dev
->
bus
->
number
,
device_dir_handle
=
devfn_to_vertex
(
dev
->
bus
->
number
,
dev
->
devfn
);
dev
->
devfn
);
if
(
device_dir_handle
==
NULL
)
if
(
device_dir_handle
==
NULL
)
...
...
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