Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326003
b: refs/heads/master
c: b4dbb25
h: refs/heads/master
i:
  326001: 1b19cdb
  325999: 3d78e6e
v: v3
  • Loading branch information
Richard Zhao authored and Greg Kroah-Hartman committed Sep 12, 2012
1 parent ae9b4da commit 959fa46
Show file tree
Hide file tree
Showing 2 changed files with 8 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: d142d6be231713330f9c0d7ee52f23e1b3f19ee4
refs/heads/master: b4dbb258b67b12fff4c9df56983934e11813c404
7 changes: 7 additions & 0 deletions trunk/drivers/usb/chipidea/ci13xxx_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/usb/chipidea.h>
#include <linux/clk.h>
#include <linux/regulator/consumer.h>
#include <linux/pinctrl/consumer.h>

#include "ci.h"
#include "ci13xxx_imx.h"
Expand Down Expand Up @@ -99,6 +100,7 @@ static int __devinit ci13xxx_imx_probe(struct platform_device *pdev)
struct device_node *phy_np;
struct resource *res;
struct regulator *reg_vbus;
struct pinctrl *pinctrl;
int ret;

if (of_find_property(pdev->dev.of_node, "fsl,usbmisc", NULL)
Expand All @@ -117,6 +119,11 @@ static int __devinit ci13xxx_imx_probe(struct platform_device *pdev)
return -ENOENT;
}

pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
if (IS_ERR(pinctrl))
dev_warn(&pdev->dev, "pinctrl get/select failed, err=%ld\n",
PTR_ERR(pinctrl));

data->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(data->clk)) {
dev_err(&pdev->dev,
Expand Down

0 comments on commit 959fa46

Please sign in to comment.