Fix ref count problem in stealth mode. pci_get_subsys() with last parameter
authorJon Smirl <jonsmirl@yahoo.com>
Thu, 2 Sep 2004 04:11:27 +0000 (04:11 +0000)
committerJon Smirl <jonsmirl@yahoo.com>
Thu, 2 Sep 2004 04:11:27 +0000 (04:11 +0000)
    set does the pci_dev_put for you.

linux-core/drm_drv.c
linux/drm_drv.h

index 69d3003..8f42e35 100644 (file)
@@ -627,7 +627,6 @@ static int __init drm_init( void )
                        }
                        /* no fbdev or vesadev, put things back and wait for normal probe */
                        pci_release_regions(pdev);
-                       pci_dev_put(pdev);
                }
        }
        
index 69d3003..8f42e35 100644 (file)
@@ -627,7 +627,6 @@ static int __init drm_init( void )
                        }
                        /* no fbdev or vesadev, put things back and wait for normal probe */
                        pci_release_regions(pdev);
-                       pci_dev_put(pdev);
                }
        }