include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit...
[safe/jmp/linux-2.6] / drivers / gpu / drm / radeon / radeon_bios.c
index a34b909..8ad71f7 100644 (file)
@@ -31,6 +31,7 @@
 #include "atom.h"
 
 #include <linux/vga_switcheroo.h>
+#include <linux/slab.h>
 /*
  * BIOS.
  */
@@ -445,6 +446,12 @@ bool radeon_get_bios(struct radeon_device *rdev)
                goto free_bios;
        }
 
+       tmp = RBIOS16(0x18);
+       if (RBIOS8(tmp + 0x14) != 0x0) {
+               DRM_INFO("Not an x86 BIOS ROM, not using.\n");
+               goto free_bios;
+       }
+
        rdev->bios_header_start = RBIOS16(0x48);
        if (!rdev->bios_header_start) {
                goto free_bios;