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
39ea150b
Commit
39ea150b
authored
Dec 11, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't allow backend to unload if in use by a chipset driver.
parent
655c8747
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
drivers/char/agp/backend.c
drivers/char/agp/backend.c
+10
-1
drivers/char/agp/frontend.c
drivers/char/agp/frontend.c
+1
-1
No files found.
drivers/char/agp/backend.c
View file @
39ea150b
...
...
@@ -261,7 +261,7 @@ int agp_register_driver (struct pci_dev *dev)
return
0
;
}
int
__exit
agp_unregister_driver
(
void
)
int
agp_unregister_driver
(
void
)
{
agp_bridge
.
type
=
NOT_SUPPORTED
;
pm_unregister_all
(
agp_power
);
...
...
@@ -272,6 +272,14 @@ int __exit agp_unregister_driver(void)
return
0
;
}
int
__exit
agp_exit
(
void
)
{
if
(
agp_count
==
0
)
return
-
EBUSY
;
return
0
;
}
int
__init
agp_init
(
void
)
{
static
int
already_initialised
=
0
;
...
...
@@ -291,6 +299,7 @@ int __init agp_init(void)
#ifndef CONFIG_GART_IOMMU
module_init
(
agp_init
);
module_exit
(
agp_exit
);
#endif
EXPORT_SYMBOL
(
agp_backend_acquire
);
...
...
drivers/char/agp/frontend.c
View file @
39ea150b
...
...
@@ -1079,7 +1079,7 @@ int __init agp_frontend_initialize(void)
return
0
;
}
void
__exit
agp_frontend_cleanup
(
void
)
void
agp_frontend_cleanup
(
void
)
{
misc_deregister
(
&
agp_miscdev
);
}
...
...
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