i915: unmap BIOS when we're done with it
authorJesse Barnes <jbarnes@hobbes.lan>
Wed, 28 May 2008 15:24:42 +0000 (08:24 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 28 May 2008 15:24:42 +0000 (08:24 -0700)
At the moment, we only read it at startup time, so we can just unmap it there
when we're done.

linux-core/intel_bios.c

index f124fa1a533b1b3df01f36738e9347d6f38f74f1..0cdc915c0a3cfa63d2518865f435067c69b6b0d0 100644 (file)
@@ -236,5 +236,7 @@ intel_init_bios(struct drm_device *dev)
        parse_general_features(dev_priv, bdb);
        parse_panel_data(dev_priv, bdb);
 
+       pci_unmap_rom(pdev, bios);
+
        return 0;
 }