Commit ed4c75a3 authored by Dave Jones's avatar Dave Jones

[AGPGART] Don't oops when deregistering failed to init agp modules.

parent 7282c60a
......@@ -262,6 +262,9 @@ int agp_register_driver (struct agp_driver *drv)
int agp_unregister_driver(struct agp_driver *drv)
{
if (drv->dev==NULL)
return -ENODEV;
agp_bridge.type = NOT_SUPPORTED;
pm_unregister_all(agp_power);
agp_frontend_cleanup();
......
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