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
e12cc603
Commit
e12cc603
authored
Jun 03, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI: remove CONFIG_PROC_FS checks in .c files.
parent
e1a2f13e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
13 deletions
+9
-13
drivers/pci/bus.c
drivers/pci/bus.c
+0
-2
drivers/pci/hotplug.c
drivers/pci/hotplug.c
+0
-8
drivers/pci/hotplug/cpci_hotplug_pci.c
drivers/pci/hotplug/cpci_hotplug_pci.c
+1
-2
drivers/pci/pci.h
drivers/pci/pci.h
+8
-0
drivers/pci/proc.c
drivers/pci/proc.c
+0
-1
No files found.
drivers/pci/bus.c
View file @
e12cc603
...
@@ -94,9 +94,7 @@ void __devinit pci_bus_add_devices(struct pci_bus *bus)
...
@@ -94,9 +94,7 @@ void __devinit pci_bus_add_devices(struct pci_bus *bus)
device_add
(
&
dev
->
dev
);
device_add
(
&
dev
->
dev
);
list_add_tail
(
&
dev
->
global_list
,
&
pci_devices
);
list_add_tail
(
&
dev
->
global_list
,
&
pci_devices
);
#ifdef CONFIG_PROC_FS
pci_proc_attach_device
(
dev
);
pci_proc_attach_device
(
dev
);
#endif
pci_create_sysfs_dev_files
(
dev
);
pci_create_sysfs_dev_files
(
dev
);
}
}
...
...
drivers/pci/hotplug.c
View file @
e12cc603
...
@@ -190,9 +190,7 @@ int pci_remove_device_safe(struct pci_dev *dev)
...
@@ -190,9 +190,7 @@ int pci_remove_device_safe(struct pci_dev *dev)
list_del
(
&
dev
->
bus_list
);
list_del
(
&
dev
->
bus_list
);
list_del
(
&
dev
->
global_list
);
list_del
(
&
dev
->
global_list
);
pci_free_resources
(
dev
);
pci_free_resources
(
dev
);
#ifdef CONFIG_PROC_FS
pci_proc_detach_device
(
dev
);
pci_proc_detach_device
(
dev
);
#endif
return
0
;
return
0
;
}
}
EXPORT_SYMBOL
(
pci_remove_device_safe
);
EXPORT_SYMBOL
(
pci_remove_device_safe
);
...
@@ -237,10 +235,7 @@ void pci_remove_bus_device(struct pci_dev *dev)
...
@@ -237,10 +235,7 @@ void pci_remove_bus_device(struct pci_dev *dev)
struct
pci_bus
*
b
=
dev
->
subordinate
;
struct
pci_bus
*
b
=
dev
->
subordinate
;
pci_remove_behind_bridge
(
dev
);
pci_remove_behind_bridge
(
dev
);
#ifdef CONFIG_PROC_FS
pci_proc_detach_bus
(
b
);
pci_proc_detach_bus
(
b
);
#endif
list_del
(
&
b
->
node
);
list_del
(
&
b
->
node
);
kfree
(
b
);
kfree
(
b
);
...
@@ -251,10 +246,7 @@ void pci_remove_bus_device(struct pci_dev *dev)
...
@@ -251,10 +246,7 @@ void pci_remove_bus_device(struct pci_dev *dev)
list_del
(
&
dev
->
bus_list
);
list_del
(
&
dev
->
bus_list
);
list_del
(
&
dev
->
global_list
);
list_del
(
&
dev
->
global_list
);
pci_free_resources
(
dev
);
pci_free_resources
(
dev
);
#ifdef CONFIG_PROC_FS
pci_proc_detach_device
(
dev
);
pci_proc_detach_device
(
dev
);
#endif
pci_put_dev
(
dev
);
pci_put_dev
(
dev
);
}
}
...
...
drivers/pci/hotplug/cpci_hotplug_pci.c
View file @
e12cc603
...
@@ -398,9 +398,8 @@ static int cpci_configure_bridge(struct pci_bus* bus, struct pci_dev* dev)
...
@@ -398,9 +398,8 @@ static int cpci_configure_bridge(struct pci_bus* bus, struct pci_dev* dev)
child
=
pci_find_bus
(
max
+
1
);
child
=
pci_find_bus
(
max
+
1
);
if
(
!
child
)
if
(
!
child
)
return
-
ENODEV
;
return
-
ENODEV
;
#ifdef CONFIG_PROC_FS
pci_proc_attach_bus
(
child
);
pci_proc_attach_bus
(
child
);
#endif
/*
/*
* Update parent bridge's subordinate field if there were more bridges
* Update parent bridge's subordinate field if there were more bridges
* behind the bridge that was scanned.
* behind the bridge that was scanned.
...
...
drivers/pci/pci.h
View file @
e12cc603
...
@@ -9,10 +9,18 @@ extern int pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res,
...
@@ -9,10 +9,18 @@ extern int pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res,
void
(
*
alignf
)(
void
*
,
struct
resource
*
,
void
(
*
alignf
)(
void
*
,
struct
resource
*
,
unsigned
long
,
unsigned
long
),
unsigned
long
,
unsigned
long
),
void
*
alignf_data
);
void
*
alignf_data
);
/* PCI /proc functions */
#ifdef CONFIG_PROC_FS
extern
int
pci_proc_attach_device
(
struct
pci_dev
*
dev
);
extern
int
pci_proc_attach_device
(
struct
pci_dev
*
dev
);
extern
int
pci_proc_detach_device
(
struct
pci_dev
*
dev
);
extern
int
pci_proc_detach_device
(
struct
pci_dev
*
dev
);
extern
int
pci_proc_attach_bus
(
struct
pci_bus
*
bus
);
extern
int
pci_proc_attach_bus
(
struct
pci_bus
*
bus
);
extern
int
pci_proc_detach_bus
(
struct
pci_bus
*
bus
);
extern
int
pci_proc_detach_bus
(
struct
pci_bus
*
bus
);
#else
static
inline
int
pci_proc_attach_device
(
struct
pci_dev
*
dev
)
{
return
0
;
}
static
inline
int
pci_proc_detach_device
(
struct
pci_dev
*
dev
)
{
return
0
;
}
static
inline
int
pci_proc_attach_bus
(
struct
pci_bus
*
bus
)
{
return
0
;
}
static
inline
int
pci_proc_detach_bus
(
struct
pci_bus
*
bus
)
{
return
0
;
}
#endif
/* Functions for PCI Hotplug drivers to use */
/* Functions for PCI Hotplug drivers to use */
extern
struct
pci_bus
*
pci_add_new_bus
(
struct
pci_bus
*
parent
,
struct
pci_dev
*
dev
,
int
busnr
);
extern
struct
pci_bus
*
pci_add_new_bus
(
struct
pci_bus
*
parent
,
struct
pci_dev
*
dev
,
int
busnr
);
...
...
drivers/pci/proc.c
View file @
e12cc603
...
@@ -599,7 +599,6 @@ __initcall(pci_proc_init);
...
@@ -599,7 +599,6 @@ __initcall(pci_proc_init);
#ifdef CONFIG_HOTPLUG
#ifdef CONFIG_HOTPLUG
EXPORT_SYMBOL
(
pci_proc_attach_device
);
EXPORT_SYMBOL
(
pci_proc_attach_device
);
EXPORT_SYMBOL
(
pci_proc_detach_device
);
EXPORT_SYMBOL
(
pci_proc_attach_bus
);
EXPORT_SYMBOL
(
pci_proc_attach_bus
);
EXPORT_SYMBOL
(
pci_proc_detach_bus
);
EXPORT_SYMBOL
(
pci_proc_detach_bus
);
EXPORT_SYMBOL
(
proc_bus_pci_dir
);
EXPORT_SYMBOL
(
proc_bus_pci_dir
);
...
...
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