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
567cf042
Commit
567cf042
authored
May 12, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't make the intel-AGP driver require a AGP capabilities
pointer. The integrated graphics AGP things don't have one.
parent
f4e0fb85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/char/agp/intel-agp.c
drivers/char/agp/intel-agp.c
+5
-5
No files found.
drivers/char/agp/intel-agp.c
View file @
567cf042
...
@@ -1275,8 +1275,6 @@ static int __init agp_intel_probe(struct pci_dev *pdev,
...
@@ -1275,8 +1275,6 @@ static int __init agp_intel_probe(struct pci_dev *pdev,
u8
cap_ptr
=
0
;
u8
cap_ptr
=
0
;
cap_ptr
=
pci_find_capability
(
pdev
,
PCI_CAP_ID_AGP
);
cap_ptr
=
pci_find_capability
(
pdev
,
PCI_CAP_ID_AGP
);
if
(
!
cap_ptr
)
return
-
ENODEV
;
bridge
=
agp_alloc_bridge
();
bridge
=
agp_alloc_bridge
();
if
(
!
bridge
)
if
(
!
bridge
)
...
@@ -1417,9 +1415,11 @@ static int __init agp_intel_probe(struct pci_dev *pdev,
...
@@ -1417,9 +1415,11 @@ static int __init agp_intel_probe(struct pci_dev *pdev,
printk
(
KERN_INFO
PFX
"Detected an Intel %s Chipset.
\n
"
,
name
);
printk
(
KERN_INFO
PFX
"Detected an Intel %s Chipset.
\n
"
,
name
);
/* Fill in the mode register */
/* Fill in the mode register */
if
(
cap_ptr
)
{
pci_read_config_dword
(
pdev
,
pci_read_config_dword
(
pdev
,
bridge
->
capndx
+
PCI_AGP_STATUS
,
bridge
->
capndx
+
PCI_AGP_STATUS
,
&
bridge
->
mode
);
&
bridge
->
mode
);
}
pci_set_drvdata
(
pdev
,
bridge
);
pci_set_drvdata
(
pdev
,
bridge
);
return
agp_add_bridge
(
bridge
);
return
agp_add_bridge
(
bridge
);
...
...
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