Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337843
b: refs/heads/master
c: 87e31a0
h: refs/heads/master
i:
  337841: fe51909
  337839: 3d3666e
v: v3
  • Loading branch information
Sascha Hauer authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent bc9a138 commit a845af2
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 0125f21b2bafde5e8dc34a31c20d2db6f3645bdc
refs/heads/master: 87e31a0795059315576cccce1205aed663c6502d
10 changes: 10 additions & 0 deletions trunk/drivers/staging/imx-drm/parallel-display.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <drm/drm_fb_helper.h>
#include <drm/drm_crtc_helper.h>
#include <linux/videodev2.h>
#include <linux/pinctrl/consumer.h>

#include "imx-drm.h"

Expand Down Expand Up @@ -195,11 +196,20 @@ static int __devinit imx_pd_probe(struct platform_device *pdev)
struct imx_parallel_display *imxpd;
int ret;
const char *fmt;
struct pinctrl *pinctrl;

imxpd = devm_kzalloc(&pdev->dev, sizeof(*imxpd), GFP_KERNEL);
if (!imxpd)
return -ENOMEM;

pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
if (IS_ERR(pinctrl)) {
ret = PTR_ERR(pinctrl);
dev_warn(&pdev->dev, "pinctrl_get_select_default failed with %d",
ret);
return ret;
}

edidp = of_get_property(np, "edid", &imxpd->edid_len);
if (edidp)
imxpd->edid = kmemdup(edidp, imxpd->edid_len, GFP_KERNEL);
Expand Down

0 comments on commit a845af2

Please sign in to comment.