Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369597
b: refs/heads/master
c: 06f95e6
h: refs/heads/master
i:
  369595: b515bf1
v: v3
  • Loading branch information
Wei Yongjun authored and Johannes Berg committed Apr 22, 2013
1 parent 684202f commit e0e3fa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 8ceb59557bdc373e532b87d4142ce27e04218f0e
refs/heads/master: 06f95e66deca680ff73076914b6ee47bcbe94926
7 changes: 5 additions & 2 deletions trunk/net/rfkill/rfkill-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ static int rfkill_gpio_probe(struct platform_device *pdev)
rfkill->pwr_clk = clk_get(&pdev->dev, pdata->power_clk_name);
if (IS_ERR(rfkill->pwr_clk)) {
pr_warn("%s: can't find pwr_clk.\n", __func__);
ret = PTR_ERR(rfkill->pwr_clk);
goto fail_shutdown_name;
}
}
Expand All @@ -152,9 +153,11 @@ static int rfkill_gpio_probe(struct platform_device *pdev)
}

rfkill->rfkill_dev = rfkill_alloc(pdata->name, &pdev->dev, pdata->type,
&rfkill_gpio_ops, rfkill);
if (!rfkill->rfkill_dev)
&rfkill_gpio_ops, rfkill);
if (!rfkill->rfkill_dev) {
ret = -ENOMEM;
goto fail_shutdown;
}

ret = rfkill_register(rfkill->rfkill_dev);
if (ret < 0)
Expand Down

0 comments on commit e0e3fa3

Please sign in to comment.