Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319214
b: refs/heads/master
c: 1112fe8
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo authored and Thierry Reding committed Jul 23, 2012
1 parent f3f3e2e commit cb2ce11
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 22d260bd88452ae81c80514810434d4cc98b7978
refs/heads/master: 1112fe88d4ebbb5f46750726b87fb0beb1396835
6 changes: 6 additions & 0 deletions trunk/drivers/pwm/pwm-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/pinctrl/consumer.h>
#include <linux/platform_device.h>
#include <linux/pwm.h>
#include <linux/slab.h>
Expand Down Expand Up @@ -130,6 +131,7 @@ static int mxs_pwm_probe(struct platform_device *pdev)
struct device_node *np = pdev->dev.of_node;
struct mxs_pwm_chip *mxs;
struct resource *res;
struct pinctrl *pinctrl;
int ret;

mxs = devm_kzalloc(&pdev->dev, sizeof(*mxs), GFP_KERNEL);
Expand All @@ -141,6 +143,10 @@ static int mxs_pwm_probe(struct platform_device *pdev)
if (!mxs->base)
return -EADDRNOTAVAIL;

pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
if (IS_ERR(pinctrl))
return PTR_ERR(pinctrl);

mxs->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(mxs->clk))
return PTR_ERR(mxs->clk);
Expand Down

0 comments on commit cb2ce11

Please sign in to comment.