From c54ba5691a573ba273498217323f19c35b1637d8 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sun, 25 Jul 2004 05:41:44 +0000 Subject: if the driver has already register don't do another intermodule register --- linux-core/drm_drv.c | 1 + 1 file changed, 1 insertion(+) (limited to 'linux-core/drm_drv.c') diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c index 706d762f..a6e745f3 100644 --- a/linux-core/drm_drv.c +++ b/linux-core/drm_drv.c @@ -745,6 +745,7 @@ static void __exit drm_cleanup( drm_device_t *dev ) if (DRM(fb_loaded)==0) pci_disable_device(dev->pdev); + DRM(numdevs)--; if ( DRM(stub_unregister)(dev->minor) ) { DRM_ERROR( "Cannot unload module\n" ); } else { -- cgit v1.2.3