[intel] free the hardware status page at driver_unload

This goes with the other hardware status page patch.
main
Keith Packard 2008-06-06 12:58:41 -07:00
parent 56a96841d0
commit a708106c77
1 changed files with 3 additions and 4 deletions

View File

@ -1103,8 +1103,9 @@ int i915_driver_unload(struct drm_device *dev)
{
struct drm_i915_private *dev_priv = dev->dev_private;
if (dev_priv->mmio_map)
drm_rmmap(dev, dev_priv->mmio_map);
i915_free_hardware_status(dev);
drm_rmmap(dev, dev_priv->mmio_map);
drm_free(dev->dev_private, sizeof(drm_i915_private_t),
DRM_MEM_DRIVER);
@ -1113,8 +1114,6 @@ int i915_driver_unload(struct drm_device *dev)
intel_fini_chipset_flush_compat(dev);
#endif
#endif
i915_free_hardware_status(dev);
return 0;
}