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
9392cffb
Commit
9392cffb
authored
Nov 04, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PCI: remove kernel log message about drivers not calling pci_disable_device()
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
4da7c3e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
drivers/pci/pci-driver.c
drivers/pci/pci-driver.c
+6
-9
No files found.
drivers/pci/pci-driver.c
View file @
9392cffb
...
@@ -271,17 +271,14 @@ static int pci_device_remove(struct device * dev)
...
@@ -271,17 +271,14 @@ static int pci_device_remove(struct device * dev)
pci_dev
->
driver
=
NULL
;
pci_dev
->
driver
=
NULL
;
}
}
#ifdef CONFIG_DEBUG_KERNEL
/*
/*
* If the driver decides to stop using the device, it should
* We would love to complain here if pci_dev->is_enabled is set, that
* call pci_disable_device().
* the driver should have called pci_disable_device(), but the
* unfortunate fact is there are too many odd BIOS and bridge setups
* that don't like drivers doing that all of the time.
* Oh well, we can dream of sane hardware when we sleep, no matter how
* horrible the crap we have to deal with is when we are awake...
*/
*/
if
(
pci_dev
->
is_enabled
)
{
dev_warn
(
&
pci_dev
->
dev
,
"Device was removed without properly "
"calling pci_disable_device(). This may need fixing.
\n
"
);
/* WARN_ON(1); */
}
#endif
/* CONFIG_DEBUG_KERNEL */
pci_dev_put
(
pci_dev
);
pci_dev_put
(
pci_dev
);
return
0
;
return
0
;
...
...
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