Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303329
b: refs/heads/master
c: fe233b9
h: refs/heads/master
i:
  303327: 791f2c9
v: v3
  • Loading branch information
Shawn Guo committed May 12, 2012
1 parent c703a1f commit f611439
Show file tree
Hide file tree
Showing 2 changed files with 10 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: f755865f9082a6632f06b8314068a883508d91ca
refs/heads/master: fe233b9df3842b3927c0275322a8047f8b33b194
9 changes: 9 additions & 0 deletions trunk/drivers/video/mxsfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <linux/clk.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <linux/pinctrl/consumer.h>
#include <mach/mxsfb.h>

#define REG_SET 4
Expand Down Expand Up @@ -756,6 +757,7 @@ static int __devinit mxsfb_probe(struct platform_device *pdev)
struct mxsfb_info *host;
struct fb_info *fb_info;
struct fb_modelist *modelist;
struct pinctrl *pinctrl;
int i, ret;

if (!pdata) {
Expand Down Expand Up @@ -793,6 +795,12 @@ static int __devinit mxsfb_probe(struct platform_device *pdev)

host->devdata = &mxsfb_devdata[pdev->id_entry->driver_data];

pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
if (IS_ERR(pinctrl)) {
ret = PTR_ERR(pinctrl);
goto error_getpin;
}

host->clk = clk_get(&host->pdev->dev, NULL);
if (IS_ERR(host->clk)) {
ret = PTR_ERR(host->clk);
Expand Down Expand Up @@ -848,6 +856,7 @@ static int __devinit mxsfb_probe(struct platform_device *pdev)
error_pseudo_pallette:
clk_put(host->clk);
error_getclock:
error_getpin:
iounmap(host->base);
error_ioremap:
framebuffer_release(fb_info);
Expand Down

0 comments on commit f611439

Please sign in to comment.