OSDN Git Service

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 f124fa1..0cdc915 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;
 }