Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223533
b: refs/heads/master
c: a56f742
h: refs/heads/master
i:
  223531: 24f800c
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Dave Airlie committed Dec 21, 2010
1 parent 646f2af commit 9dda26d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 68d3059665c4a57223f855eb02f9ab7ce5b3a593
refs/heads/master: a56f7428d7534f162fbb089c5c79012bf38a7c29
19 changes: 19 additions & 0 deletions trunk/drivers/gpu/drm/radeon/radeon_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,28 @@ static struct drm_driver driver_old = {

static struct drm_driver kms_driver;

static void radeon_kick_out_firmware_fb(struct pci_dev *pdev)
{
struct apertures_struct *ap;
bool primary = false;

ap = alloc_apertures(1);
ap->ranges[0].base = pci_resource_start(pdev, 0);
ap->ranges[0].size = pci_resource_len(pdev, 0);

#ifdef CONFIG_X86
primary = pdev->resource[PCI_ROM_RESOURCE].flags & IORESOURCE_ROM_SHADOW;
#endif
remove_conflicting_framebuffers(ap, "radeondrmfb", primary);
kfree(ap);
}

static int __devinit
radeon_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{
/* Get rid of things like offb */
radeon_kick_out_firmware_fb(pdev);

return drm_get_pci_dev(pdev, ent, &kms_driver);
}

Expand Down

0 comments on commit 9dda26d

Please sign in to comment.