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
9bce1ae3
Commit
9bce1ae3
authored
Jul 27, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Mark more things __init in kernel/pci.c
parent
3a2b9514
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
arch/sparc64/kernel/pci.c
arch/sparc64/kernel/pci.c
+7
-8
No files found.
arch/sparc64/kernel/pci.c
View file @
9bce1ae3
...
...
@@ -191,7 +191,7 @@ extern void tomatillo_init(int, char *);
static
struct
{
char
*
model_name
;
void
(
*
init
)(
int
,
char
*
);
}
pci_controller_table
[]
=
{
}
pci_controller_table
[]
__initdata
=
{
{
"SUNW,sabre"
,
sabre_init
},
{
"pci108e,a000"
,
sabre_init
},
{
"pci108e,a001"
,
sabre_init
},
...
...
@@ -207,7 +207,7 @@ static struct {
#define PCI_NUM_CONTROLLER_TYPES (sizeof(pci_controller_table) / \
sizeof(pci_controller_table[0]))
static
int
pci_controller_init
(
char
*
model_name
,
int
namelen
,
int
node
)
static
int
__init
pci_controller_init
(
char
*
model_name
,
int
namelen
,
int
node
)
{
int
i
;
...
...
@@ -226,7 +226,7 @@ static int pci_controller_init(char *model_name, int namelen, int node)
return
0
;
}
static
int
pci_is_controller
(
char
*
model_name
,
int
namelen
,
int
node
)
static
int
__init
pci_is_controller
(
char
*
model_name
,
int
namelen
,
int
node
)
{
int
i
;
...
...
@@ -240,8 +240,7 @@ static int pci_is_controller(char *model_name, int namelen, int node)
return
0
;
}
static
int
pci_controller_scan
(
int
(
*
handler
)(
char
*
,
int
,
int
))
static
int
__init
pci_controller_scan
(
int
(
*
handler
)(
char
*
,
int
,
int
))
{
char
namebuf
[
64
];
int
node
;
...
...
@@ -278,7 +277,7 @@ static int pci_controller_scan(int (*handler)(char *, int, int))
/* Is there some PCI controller in the system? */
int
pcic_present
(
void
)
int
__init
pcic_present
(
void
)
{
return
pci_controller_scan
(
pci_is_controller
);
}
...
...
@@ -288,14 +287,14 @@ int pcic_present(void)
* pci_controller_root. Setup the controller enough such
* that bus scanning can be done.
*/
static
void
pci_controller_probe
(
void
)
static
void
__init
pci_controller_probe
(
void
)
{
printk
(
"PCI: Probing for controllers.
\n
"
);
pci_controller_scan
(
pci_controller_init
);
}
static
void
pci_scan_each_controller_bus
(
void
)
static
void
__init
pci_scan_each_controller_bus
(
void
)
{
struct
pci_controller_info
*
p
;
unsigned
long
flags
;
...
...
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