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
8184ebfd
Commit
8184ebfd
authored
Oct 05, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI: remove pci_find_class() usage from arch specific files.
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
1de61ebe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
arch/alpha/kernel/console.c
arch/alpha/kernel/console.c
+1
-1
arch/i386/kernel/cpu/mtrr/main.c
arch/i386/kernel/cpu/mtrr/main.c
+5
-3
arch/ppc64/kernel/pci.c
arch/ppc64/kernel/pci.c
+1
-1
No files found.
arch/alpha/kernel/console.c
View file @
8184ebfd
...
...
@@ -47,7 +47,7 @@ locate_and_init_vga(void *(*sel_func)(void *, void *))
if
(
!
sel_func
)
sel_func
=
(
void
*
)
default_vga_hose_select
;
for
(
dev
=
NULL
;
(
dev
=
pci_
find
_class
(
PCI_CLASS_DISPLAY_VGA
<<
8
,
dev
));)
{
for
(
dev
=
NULL
;
(
dev
=
pci_
get
_class
(
PCI_CLASS_DISPLAY_VGA
<<
8
,
dev
));)
{
if
(
!
hose
)
hose
=
dev
->
sysdata
;
else
hose
=
sel_func
(
hose
,
dev
->
sysdata
);
}
...
...
arch/i386/kernel/cpu/mtrr/main.c
View file @
8184ebfd
...
...
@@ -77,22 +77,24 @@ static int have_wrcomb(void)
{
struct
pci_dev
*
dev
;
if
((
dev
=
pci_
find
_class
(
PCI_CLASS_BRIDGE_HOST
<<
8
,
NULL
))
!=
NULL
)
{
if
((
dev
=
pci_
get
_class
(
PCI_CLASS_BRIDGE_HOST
<<
8
,
NULL
))
!=
NULL
)
{
/* ServerWorks LE chipsets have problems with write-combining
Don't allow it and leave room for other chipsets to be tagged */
if
(
dev
->
vendor
==
PCI_VENDOR_ID_SERVERWORKS
&&
dev
->
device
==
PCI_DEVICE_ID_SERVERWORKS_LE
)
{
printk
(
KERN_INFO
"mtrr: Serverworks LE detected. Write-combining disabled.
\n
"
);
pci_dev_put
(
dev
);
return
0
;
}
/* Intel 450NX errata # 23. Non ascending cachline evictions to
write combining memory may resulting in data corruption */
if
(
dev
->
vendor
==
PCI_VENDOR_ID_INTEL
&&
dev
->
device
==
PCI_DEVICE_ID_INTEL_82451NX
)
{
dev
->
device
==
PCI_DEVICE_ID_INTEL_82451NX
)
{
printk
(
KERN_INFO
"mtrr: Intel 450NX MMC detected. Write-combining disabled.
\n
"
);
pci_dev_put
(
dev
);
return
0
;
}
pci_dev_put
(
dev
);
}
return
(
mtrr_if
->
have_wrcomb
?
mtrr_if
->
have_wrcomb
()
:
0
);
}
...
...
arch/ppc64/kernel/pci.c
View file @
8184ebfd
...
...
@@ -303,7 +303,7 @@ static int __init pcibios_init(void)
ppc_md
.
pcibios_fixup
();
/* Cache the location of the ISA bridge (if we have one) */
ppc64_isabridge_dev
=
pci_
find
_class
(
PCI_CLASS_BRIDGE_ISA
<<
8
,
NULL
);
ppc64_isabridge_dev
=
pci_
get
_class
(
PCI_CLASS_BRIDGE_ISA
<<
8
,
NULL
);
if
(
ppc64_isabridge_dev
!=
NULL
)
printk
(
"ISA bridge at %s
\n
"
,
pci_name
(
ppc64_isabridge_dev
));
...
...
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