Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219682
b: refs/heads/master
c: 918e359
h: refs/heads/master
v: v3
  • Loading branch information
Kulikov Vasiliy authored and Greg Kroah-Hartman committed Aug 31, 2010
1 parent 3dfb2cd commit b9d9c42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 3a8f2d3c716a218f1499041d74edb07638b45559
refs/heads/master: 918e3592b9ea865ce29bda06a7200eba80d8d5f8
13 changes: 8 additions & 5 deletions trunk/drivers/staging/sm7xx/smtcfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,6 @@ static int __devinit smtcfb_pci_probe(struct pci_dev *pdev,
"Silicon Motion display driver " SMTC_LINUX_FB_VERSION "\n");

err = pci_enable_device(pdev); /* enable SMTC chip */

if (err)
return err;
err = -ENOMEM;
Expand All @@ -859,7 +858,7 @@ static int __devinit smtcfb_pci_probe(struct pci_dev *pdev,
sfb = smtc_alloc_fb_info(pdev, name);

if (!sfb)
goto failed;
goto failed_free;
/* Jason (08/13/2009)
* Store fb_info to be further used when suspending and resuming
*/
Expand Down Expand Up @@ -917,7 +916,8 @@ static int __devinit smtcfb_pci_probe(struct pci_dev *pdev,
printk(KERN_INFO
"%s: unable to map memory mapped IO\n",
sfb->fb.fix.id);
return -ENOMEM;
err = -ENOMEM;
goto failed_fb;
}

/* set MCLK = 14.31818 * (0x16 / 0x2) */
Expand Down Expand Up @@ -951,8 +951,7 @@ static int __devinit smtcfb_pci_probe(struct pci_dev *pdev,
printk(KERN_INFO
"No valid Silicon Motion display chip was detected!\n");

smtc_free_fb_info(sfb);
return err;
goto failed_fb;
}

/* can support 32 bpp */
Expand Down Expand Up @@ -986,8 +985,12 @@ static int __devinit smtcfb_pci_probe(struct pci_dev *pdev,

smtc_unmap_smem(sfb);
smtc_unmap_mmio(sfb);
failed_fb:
smtc_free_fb_info(sfb);

failed_free:
pci_disable_device(pdev);

return err;
}

Expand Down

0 comments on commit b9d9c42

Please sign in to comment.