Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236273
b: refs/heads/master
c: bc54f33
h: refs/heads/master
i:
  236271: 3aa2ef6
v: v3
  • Loading branch information
Marek Belisko authored and Greg Kroah-Hartman committed Mar 7, 2011
1 parent 91dba78 commit 2e57f75
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 487e873dd3f8d7ede7635896e19376ef78157721
refs/heads/master: bc54f3393c0563a00c13d2b58aca23ae153bdd3b
27 changes: 14 additions & 13 deletions trunk/drivers/staging/gma500/psb_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1601,17 +1601,6 @@ static struct drm_driver driver = {
.fasync = drm_fasync,
.read = drm_read,
},
.pci_driver = {
.name = DRIVER_NAME,
.id_table = pciidlist,
.resume = ospm_power_resume,
.suspend = ospm_power_suspend,
.probe = psb_probe,
.remove = psb_remove,
#ifdef CONFIG_PM
.driver.pm = &psb_pm_ops,
#endif
},
.name = DRIVER_NAME,
.desc = DRIVER_DESC,
.date = PSB_DRM_DRIVER_DATE,
Expand All @@ -1620,6 +1609,18 @@ static struct drm_driver driver = {
.patchlevel = PSB_DRM_DRIVER_PATCHLEVEL
};

static struct pci_driver psb_pci_driver = {
.name = DRIVER_NAME,
.id_table = pciidlist,
.resume = ospm_power_resume,
.suspend = ospm_power_suspend,
.probe = psb_probe,
.remove = psb_remove,
#ifdef CONFIG_PM
.driver.pm = &psb_pm_ops,
#endif
};

static int psb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{
/* MLD Added this from Inaky's patch */
Expand All @@ -1630,12 +1631,12 @@ static int psb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)

static int __init psb_init(void)
{
return drm_init(&driver);
return drm_pci_init(&driver, &psb_pci_driver);
}

static void __exit psb_exit(void)
{
drm_exit(&driver);
drm_pci_exit(&driver, &psb_pci_driver);
}

late_initcall(psb_init);
Expand Down

0 comments on commit 2e57f75

Please sign in to comment.