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
bf01b5b6
Commit
bf01b5b6
authored
Jan 07, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IBM PCI Hotplug: fix compile time error due to find_bus() function name.
parent
083eb98a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/hotplug/ibmphp_core.c
drivers/hotplug/ibmphp_core.c
+5
-5
No files found.
drivers/hotplug/ibmphp_core.c
View file @
bf01b5b6
...
@@ -769,11 +769,11 @@ static struct pci_func *ibm_slot_find (u8 busno, u8 device, u8 function)
...
@@ -769,11 +769,11 @@ static struct pci_func *ibm_slot_find (u8 busno, u8 device, u8 function)
* Parameters: bus number
* Parameters: bus number
* Returns : pci_bus * or NULL if not found
* Returns : pci_bus * or NULL if not found
*/
*/
static
struct
pci_bus
*
find_bus
(
u8
busno
)
static
struct
pci_bus
*
ibmphp_
find_bus
(
u8
busno
)
{
{
const
struct
list_head
*
tmp
;
const
struct
list_head
*
tmp
;
struct
pci_bus
*
bus
;
struct
pci_bus
*
bus
;
debug
(
"inside
find_bus, busno = %x
\n
"
,
busno
);
debug
(
"inside
%s, busno = %x
\n
"
,
__FUNCTION__
,
busno
);
list_for_each
(
tmp
,
&
pci_root_buses
)
{
list_for_each
(
tmp
,
&
pci_root_buses
)
{
bus
=
(
struct
pci_bus
*
)
pci_bus_b
(
tmp
);
bus
=
(
struct
pci_bus
*
)
pci_bus_b
(
tmp
);
...
@@ -1002,7 +1002,7 @@ static u8 bus_structure_fixup (u8 busno)
...
@@ -1002,7 +1002,7 @@ static u8 bus_structure_fixup (u8 busno)
struct
pci_dev
*
dev
;
struct
pci_dev
*
dev
;
u16
l
;
u16
l
;
if
(
find_bus
(
busno
)
||
!
(
ibmphp_find_same_bus_num
(
busno
)))
if
(
ibmphp_
find_bus
(
busno
)
||
!
(
ibmphp_find_same_bus_num
(
busno
)))
return
1
;
return
1
;
bus
=
kmalloc
(
sizeof
(
*
bus
),
GFP_KERNEL
);
bus
=
kmalloc
(
sizeof
(
*
bus
),
GFP_KERNEL
);
...
@@ -1056,7 +1056,7 @@ static int ibm_configure_device (struct pci_func *func)
...
@@ -1056,7 +1056,7 @@ static int ibm_configure_device (struct pci_func *func)
func
->
dev
=
pci_find_slot
(
func
->
busno
,
(
func
->
device
<<
3
)
|
(
func
->
function
&
0x7
));
func
->
dev
=
pci_find_slot
(
func
->
busno
,
(
func
->
device
<<
3
)
|
(
func
->
function
&
0x7
));
if
(
func
->
dev
==
NULL
)
{
if
(
func
->
dev
==
NULL
)
{
dev0
.
bus
=
find_bus
(
func
->
busno
);
dev0
.
bus
=
ibmphp_
find_bus
(
func
->
busno
);
dev0
.
devfn
=
((
func
->
device
<<
3
)
+
(
func
->
function
&
0x7
));
dev0
.
devfn
=
((
func
->
device
<<
3
)
+
(
func
->
function
&
0x7
));
dev0
.
sysdata
=
dev0
.
bus
->
sysdata
;
dev0
.
sysdata
=
dev0
.
bus
->
sysdata
;
...
@@ -1636,7 +1636,7 @@ static int __init ibmphp_init (void)
...
@@ -1636,7 +1636,7 @@ static int __init ibmphp_init (void)
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
bus
=
find_bus
(
0
);
bus
=
ibmphp_
find_bus
(
0
);
if
(
!
bus
)
{
if
(
!
bus
)
{
err
(
"Can't find the root pci bus, can not continue
\n
"
);
err
(
"Can't find the root pci bus, can not continue
\n
"
);
return
-
ENODEV
;
return
-
ENODEV
;
...
...
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