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
21e9448d
Commit
21e9448d
authored
Oct 05, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI: remove pci_find_subsys() calls from cpufreq code.
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
b203e95a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
arch/i386/kernel/cpu/cpufreq/speedstep-ich.c
arch/i386/kernel/cpu/cpufreq/speedstep-ich.c
+10
-5
No files found.
arch/i386/kernel/cpu/cpufreq/speedstep-ich.c
View file @
21e9448d
...
...
@@ -171,7 +171,7 @@ static int speedstep_activate (void)
*/
static
unsigned
int
speedstep_detect_chipset
(
void
)
{
speedstep_chipset_dev
=
pci_
find
_subsys
(
PCI_VENDOR_ID_INTEL
,
speedstep_chipset_dev
=
pci_
get
_subsys
(
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801DB_12
,
PCI_ANY_ID
,
PCI_ANY_ID
,
...
...
@@ -179,7 +179,7 @@ static unsigned int speedstep_detect_chipset (void)
if
(
speedstep_chipset_dev
)
return
4
;
/* 4-M */
speedstep_chipset_dev
=
pci_
find
_subsys
(
PCI_VENDOR_ID_INTEL
,
speedstep_chipset_dev
=
pci_
get
_subsys
(
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801CA_12
,
PCI_ANY_ID
,
PCI_ANY_ID
,
...
...
@@ -188,7 +188,7 @@ static unsigned int speedstep_detect_chipset (void)
return
3
;
/* 3-M */
speedstep_chipset_dev
=
pci_
find
_subsys
(
PCI_VENDOR_ID_INTEL
,
speedstep_chipset_dev
=
pci_
get
_subsys
(
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82801BA_10
,
PCI_ANY_ID
,
PCI_ANY_ID
,
...
...
@@ -201,7 +201,7 @@ static unsigned int speedstep_detect_chipset (void)
static
struct
pci_dev
*
hostbridge
;
u8
rev
=
0
;
hostbridge
=
pci_
find
_subsys
(
PCI_VENDOR_ID_INTEL
,
hostbridge
=
pci_
get
_subsys
(
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_82815_MC
,
PCI_ANY_ID
,
PCI_ANY_ID
,
...
...
@@ -214,9 +214,11 @@ static unsigned int speedstep_detect_chipset (void)
if
(
rev
<
5
)
{
dprintk
(
KERN_INFO
"cpufreq: hostbridge does not support speedstep
\n
"
);
speedstep_chipset_dev
=
NULL
;
pci_dev_put
(
hostbridge
);
return
0
;
}
pci_dev_put
(
hostbridge
);
return
2
;
/* 2-M */
}
...
...
@@ -411,8 +413,10 @@ static int __init speedstep_init(void)
}
/* activate speedstep support */
if
(
speedstep_activate
())
if
(
speedstep_activate
())
{
pci_dev_put
(
speedstep_chipset_dev
);
return
-
EINVAL
;
}
return
cpufreq_register_driver
(
&
speedstep_driver
);
}
...
...
@@ -425,6 +429,7 @@ static int __init speedstep_init(void)
*/
static
void
__exit
speedstep_exit
(
void
)
{
pci_dev_put
(
speedstep_chipset_dev
);
cpufreq_unregister_driver
(
&
speedstep_driver
);
}
...
...
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