Commit 6e8f247a authored by Dave Jones's avatar Dave Jones

don't allow to be opened twice.

This allows us to early_init using a direct agp_init() call for the i810fb.
parent 34e9aa48
...@@ -274,6 +274,13 @@ int __exit agp_unregister_driver(void) ...@@ -274,6 +274,13 @@ int __exit agp_unregister_driver(void)
int __init agp_init(void) int __init agp_init(void)
{ {
static int already_initialised=0;
if (already_initialised!=0)
return 0;
already_initialised = 1;
memset(&agp_bridge, 0, sizeof(struct agp_bridge_data)); memset(&agp_bridge, 0, sizeof(struct agp_bridge_data));
agp_bridge.type = NOT_SUPPORTED; agp_bridge.type = NOT_SUPPORTED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment