Commit 30ffac45 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[AGPGART] Add printk's to error paths of agp_add_bridge

parent 6581662b
...@@ -240,29 +240,35 @@ int agp_add_bridge(struct agp_bridge_data *bridge) ...@@ -240,29 +240,35 @@ int agp_add_bridge(struct agp_bridge_data *bridge)
int error; int error;
if (!bridge->dev) { if (!bridge->dev) {
printk(KERN_DEBUG PFX "Erk, registering with no pci_dev!\n"); printk (KERN_DEBUG PFX "Erk, registering with no pci_dev!\n");
return -EINVAL; return -EINVAL;
} }
if (agp_count) { if (agp_count) {
printk(KERN_DEBUG PFX printk (KERN_INFO PFX
"Only one agpgart device currently supported.\n"); "Only one agpgart device currently supported.\n");
return -ENODEV; return -ENODEV;
} }
/* Grab reference on the chipset driver. */ /* Grab reference on the chipset driver. */
if (!try_module_get(bridge->driver->owner)) if (!try_module_get(bridge->driver->owner)) {
printk (KERN_INFO PFX "Couldn't lock chipset driver.\n");
return -EINVAL; return -EINVAL;
}
bridge->type = SUPPORTED; bridge->type = SUPPORTED;
error = agp_backend_initialize(agp_bridge); error = agp_backend_initialize(agp_bridge);
if (error) if (error) {
printk (KERN_INFO PFX "agp_backend_initialize() failed.\n");
goto err_out; goto err_out;
}
error = agp_frontend_initialize(); error = agp_frontend_initialize();
if (error) if (error) {
printk (KERN_INFO PFX "agp_frontend_initialize() failed.\n");
goto frontend_err; goto frontend_err;
}
/* FIXME: What to do with this? */ /* FIXME: What to do with this? */
inter_module_register("drm_agp", THIS_MODULE, &drm_agp); inter_module_register("drm_agp", THIS_MODULE, &drm_agp);
......
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